diff options
author | Nikita Popov <nikic@php.net> | 2013-03-24 17:52:16 +0100 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2013-06-02 13:28:30 +0200 |
commit | cbf90b1a908d8f5c1799a1e206b968f393ba7d99 (patch) | |
tree | 5e18a662f8d3c72630d9f17253413c4c69439a5e | |
parent | 51c065f611c563c4b9fc0432be27fafd99424d8e (diff) | |
download | php-git-cbf90b1a908d8f5c1799a1e206b968f393ba7d99.tar.gz |
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.
-rw-r--r-- | ext/pdo_pgsql/tests/is_in_transaction.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_pgsql/tests/is_in_transaction.phpt b/ext/pdo_pgsql/tests/is_in_transaction.phpt index 99ff56162d..72da4f4e07 100644 --- a/ext/pdo_pgsql/tests/is_in_transaction.phpt +++ b/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) |