]> granicus.if.org Git - php/commit
Fix PDO::inTransaction() test for pgsql
authorNikita Popov <nikic@php.net>
Sun, 24 Mar 2013 16:52:16 +0000 (17:52 +0100)
committerNikita Popov <nikic@php.net>
Sun, 24 Mar 2013 16:54:05 +0000 (17:54 +0100)
commitc08e1d2be948d63f7a9309344a0ed4092ac8dace
treeb2f3c9292f9e3bae74cd059fd6f5fcea10ea7a91
parentd9003828149380322e7b8d3e60c3001ae905f29c
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.
ext/pdo_pgsql/tests/is_in_transaction.phpt