summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/02connection.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/02connection.phpt')
-rw-r--r--ext/pgsql/tests/02connection.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pgsql/tests/02connection.phpt b/ext/pgsql/tests/02connection.phpt
index 4f21fcdf9..6288d0e17 100644
--- a/ext/pgsql/tests/02connection.phpt
+++ b/ext/pgsql/tests/02connection.phpt
@@ -23,6 +23,12 @@ if (pg_connection_busy($db))
{
echo "pg_connection_busy() error\n";
}
+if (function_exists('pg_transaction_status')) {
+ if (pg_transaction_status($db) != PGSQL_TRANSACTION_IDLE)
+ {
+ echo "pg_transaction_status() error\n";
+ }
+}
if (!pg_host($db))
{
echo "pg_host() error\n";