PDO::inTransaction
PDO::inTransaction - Check whether inside a transaction (PHP 5 >= 5.3.3, Bundled pdo_pgsql)
Description
Syntax
bool PDO::inTransaction ( void )
Checks whether a transaction within the driver is currently active. This method only works for database drivers that support transactions.
Parameters
This function has no parameters.
Return Value
Returns TRUE if the current transaction is active, otherwise FALSE.
PHP PDO Reference Manual