mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 22:56:35 +02:00
Fix MySQL implementation of inTransaction()
This commit is contained in:
@@ -234,7 +234,8 @@ class DibiMySqliDriver extends DibiObject implements IDibiDriver
|
||||
*/
|
||||
public function inTransaction()
|
||||
{
|
||||
return (bool) mysqli_fetch_field_direct(mysqli_query($this->connection, 'SELECT @@autocommit'), 0);
|
||||
$row = mysqli_fetch_row(mysqli_query($this->connection, 'SELECT @@autocommit'));
|
||||
return (bool) $row[0];
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user