我需要在 Bitrix24 应用程序中调用 MySQL 存储过程并将其用于查询结果。我怎样才能做到这一点?
1 回答
0
安装 php 扩展https://www.php.net/manual/en/book.mssql.php
实现以下架构:
class MssqlSqlHelper extends Bitrix\Main\DB\SqlHelper
{
public function quote($identifier)
{
if (self::isKnowFunctionalCall($identifier))
{
return $identifier
}
else
{
return parent::quote($identifier);
}
}
}
其中 self::isKnownFunctionCall 是一个验证方法,如果 foo_table_procedure() 在 $identifier 中,则返回 true。
public static function getTableName()
{
return "foo_table_procedure()";
}
于 2020-02-25T15:10:48.067 回答