196963
From c08e1d2be948d63f7a9309344a0ed4092ac8dace Mon Sep 17 00:00:00 2001
196963
From: Nikita Popov <nikic@php.net>
196963
Date: Sun, 24 Mar 2013 17:52:16 +0100
196963
Subject: [PATCH] Fix PDO::inTransaction() test for pgsql
196963
196963
inTransaction() nowadays casts the in_transaction result to boolean.
196963
I'm not sure whether the INERROR state should result in true or false.
196963
For now I went with the result that we actually get.
196963
---
196963
 ext/pdo_pgsql/tests/is_in_transaction.phpt | 8 ++++----
196963
 1 file changed, 4 insertions(+), 4 deletions(-)
196963
196963
diff --git a/ext/pdo_pgsql/tests/is_in_transaction.phpt b/ext/pdo_pgsql/tests/is_in_transaction.phpt
196963
index 99ff561..72da4f4 100644
196963
--- a/ext/pdo_pgsql/tests/is_in_transaction.phpt
196963
+++ b/ext/pdo_pgsql/tests/is_in_transaction.phpt
196963
@@ -57,10 +57,10 @@ var_dump($db->inTransaction());
196963
 ?>
196963
 --EXPECT--
196963
 Test PDO::PGSQL_TRANSACTION_INTRANS
196963
-int(2)
196963
+bool(true)
196963
 Test PDO::PGSQL_TRANSACTION_IDLE
196963
-int(0)
196963
+bool(false)
196963
 Test PDO::PGSQL_TRANSACTION_INERROR
196963
-int(3)
196963
+bool(true)
196963
 Test PDO::PGSQL_TRANSACTION_IDLE
196963
-int(0)
196963
+bool(false)
196963
-- 
196963
1.7.11.5
196963