mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
DibiConnection: inTransaction() is back, implemented in drivers
This commit is contained in:
@@ -178,6 +178,17 @@ class DibiOdbcDriver extends DibiObject implements IDibiDriver
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Is in transaction?
|
||||
* @return bool
|
||||
*/
|
||||
public function inTransaction()
|
||||
{
|
||||
return (bool) odbc_autocommit($this->connection);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the connection resource.
|
||||
* @return mixed
|
||||
|
Reference in New Issue
Block a user