Browse Source

Fix PDO::inTransaction() test for pgsql

inTransaction() nowadays casts the in_transaction result to boolean.
I'm not sure whether the INERROR state should result in true or false.
For now I went with the result that we actually get.
PHP-5.4.17
Nikita Popov 13 years ago
committed by Matteo Beccati
parent
commit
cbf90b1a90
  1. 8
      ext/pdo_pgsql/tests/is_in_transaction.phpt

8
ext/pdo_pgsql/tests/is_in_transaction.phpt

@ -57,10 +57,10 @@ var_dump($db->inTransaction());
?>
--EXPECT--
Test PDO::PGSQL_TRANSACTION_INTRANS
int(2)
bool(true)
Test PDO::PGSQL_TRANSACTION_IDLE
int(0)
bool(false)
Test PDO::PGSQL_TRANSACTION_INERROR
int(3)
bool(true)
Test PDO::PGSQL_TRANSACTION_IDLE
int(0)
bool(false)
Loading…
Cancel
Save