(PHP 5 >= 5.3.3, Bundled pdo_pgsql)
PDO::inTransaction — Checks if inside a transaction
Checks if a transaction currently is active within the driver.
Cette fonction ne contient aucun paramètre.
Returns TRUE if a transaction currently is active, and false if not.
Note:
Note that currently only the PostGreSQL driver implements this method.