2

I need to call MySQL stored procedures in Bitrix24 application and use it for the query result. How can I do that?

KeineMaster
  • 285
  • 5
  • 14
KOCH DOEUN
  • 137
  • 1
  • 7

1 Answers1

0

Install php extension https://www.php.net/manual/en/book.mssql.php

Implement the following architecture:

class MssqlSqlHelper extends Bitrix\Main\DB\SqlHelper
{
    public function quote($identifier)
    {
        if (self::isKnowFunctionalCall($identifier))
        {
            return $identifier
        }
        else
        {
            return parent::quote($identifier);
        }
    }
}

Where self::isKnownFunctionCall is a verification method that returns true if foo_table_procedure() is in $identifier.

public static function getTableName()
{
         return "foo_table_procedure()";
}
RCarlos
  • 11
  • 4