Skip to content

Commit c08e1d2

Browse files
committed
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.
1 parent d900382 commit c08e1d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pdo_pgsql/tests/is_in_transaction.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ var_dump($db->inTransaction());
5757
?>
5858
--EXPECT--
5959
Test PDO::PGSQL_TRANSACTION_INTRANS
60-
int(2)
60+
bool(true)
6161
Test PDO::PGSQL_TRANSACTION_IDLE
62-
int(0)
62+
bool(false)
6363
Test PDO::PGSQL_TRANSACTION_INERROR
64-
int(3)
64+
bool(true)
6565
Test PDO::PGSQL_TRANSACTION_IDLE
66-
int(0)
66+
bool(false)

0 commit comments

Comments
 (0)