• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/mysqliconnection.php
  • Класс: BitrixMainDBMysqliConnection
  • Вызов: MysqliConnection::queryInternal
protected function queryInternal($sql, array $binds = null, DiagSqlTrackerQuery $trackerQuery = null)
{
	$this->configureReportLevel();
	$this->connectInternal();

	$trackerQuery?->startQuery($sql, $binds);

	$result = $this->resource->query($sql);

	$trackerQuery?->finishQuery();

	$this->lastQueryResult = $result;

	if (!$result)
	{
		throw new SqlQueryException('Mysql query error', $this->getErrorMessage(), $sql);
	}

	return $result;
}