update : 2015.11.03
php.shukuma.com

검색:
 
 
Checks if inside a transaction

PDO::inTransaction

(PHP 5 >= 5.3.3, Bundled pdo_pgsql)

PDO::inTransaction Checks if inside a transaction

설명

public bool PDO::inTransaction ( void )

Checks if a transaction is currently active within the driver. This method only works for database drivers that support transactions.

인수

이 함수는 인수가 없습니다.

반환값

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