PDO
PHP Manual

PDO::inTransaction

(PHP 5 >= 5.3.3, Bundled pdo_pgsql)

PDO::inTransaction Checks if inside a transaction

説明

array PDO::inTransaction ( void )

Checks if a transaction is currently active within the driver.

パラメータ

この関数にはパラメータはありません。

返り値

Returns TRUE if a transaction is currently active, and FALSE if not.

返り値

注意:

Note that currently only the PostgreSQL driver implements this method.


PDO
PHP Manual