mirror of
https://github.com/dg/dibi.git
synced 2025-10-19 16:57:11 +02:00
DibiConnection: inTransaction() is back, implemented in drivers
This commit is contained in:
@@ -247,6 +247,17 @@ class DibiMySqlDriver extends DibiObject implements IDibiDriver
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Is in transaction?
|
||||
* @return bool
|
||||
*/
|
||||
public function inTransaction()
|
||||
{
|
||||
return (bool) mysql_fetch_field(mysql_query('SELECT @@autocommit', $this->connection));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the connection resource.
|
||||
* @return mixed
|
||||
|
Reference in New Issue
Block a user