$this->transDepth === 0
// In transactions, do not throw exception by default.
||
$this->transException
) ) { // We call this function in order to roll-back queries
// if transactions are enabled. If we don't call this here
// the error message will trigger an exit, causing the
// transactions to remain in limbo.
while ($this->transDepth !== 0
) { $transDepth =
$this->transDepth;
$this->
transComplete();
if ($transDepth ===
$this->transDepth
) { log_message('error', 'Database: Failure during an automated transaction commit/rollback!'
);
break;
} } // Let others do something with this query.
Events::
trigger('DBQuery',
$query);
if ($exception !== null
) {