1--TEST--
2PostgreSQL pg_result_status()
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7include 'config.inc';
8
9$db = pg_connect($conn_str);
10
11$sql = "SELECT * FROM ".$table_name." WHERE num = -2";
12$result = pg_query($db, "BEGIN;END");
13
14echo pg_result_status($result)."\n";
15echo pg_result_status($result, PGSQL_STATUS_STRING)."\n";
16?>
17--EXPECT--
181
19COMMIT
20