PDO
PHP Manual

PDO::inTransaction

(PHP 5 >= 5.3.3, Bundled pdo_pgsql)

PDO::inTransaction Checks if inside a transaction

Description

array PDO::inTransaction ( void )

Checks if a transaction currently is active within the driver.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

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

Valeurs de retour

Note:

Note that currently only the PostGreSQL driver implements this method.


PDO
PHP Manual