src/ORM/Connect/MySQLDatabase.php
protected function inspectQuery($sql)
    {
        // Any DDL discards transactions.
        // See https://dev.mysql.com/doc/internals/en/transactions-notes-on-ddl-and-normal-transaction.html
        // on why we need to be over-eager
        $isDDL = $this->getConnector()->isQueryDDL($sql);
        if ($isDDL) {
            $this->resetTransactionNesting();
        }
    }
protected function inspectQuery($sql)
    {
        // Any DDL discards transactions.
        // See https://dev.mysql.com/doc/internals/en/transactions-notes-on-ddl-and-normal-transaction.html
        // on why we need to be over-eager
        $isDDL = $this->getConnector()->isQueryDDL($sql);
        if ($isDDL) {
            $this->resetTransactionNesting();
        }
    }
protected function inspectQuery ( $ sql ) { // Any DDL discards transactions. // See https://dev.mysql.com/doc/internals/en/transactions-notes-on-ddl-and-normal-transaction.html // on why we need to be over-eager $ isDDL = $ this -> getConnector ( ) -> isQueryDDL ( $ sql ) ; if ( $ isDDL ) { $ this -> resetTransactionNesting ( ) ; } }
Inspect a SQL query prior to execution

@param string $sql
Inspect a SQL query prior to execution