• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/mysqlcommonconnection.php
  • Класс: BitrixMainDBMysqlCommonConnection
  • Вызов: MysqlCommonConnection::commitTransaction
public function commitTransaction()
{
	$this->transactionLevel--;

	if ($this->transactionLevel < 0)
	{
		throw new TransactionException('Transaction was not started.');
	}

	if ($this->transactionLevel == 0)
	{
		// commits all nested transactions
		$this->query("COMMIT");
	}
}