1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

DibiConnection: inTransaction() is back, implemented in drivers

This commit is contained in:
David Grudl
2010-01-11 16:56:54 +01:00
parent c37475838f
commit d61bd79982
13 changed files with 131 additions and 3 deletions

View File

@@ -197,6 +197,17 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver
/**
* Is in transaction?
* @return bool
*/
public function inTransaction()
{
return (bool) $this->connection->getAttribute(PDO::ATTR_AUTOCOMMIT);
}
/**
* Returns the connection resource.
* @return PDO