summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/16pg_result_status.phpt
blob: 268dc9fd64cf34e9bac106aab4a0d2e5eda3ee6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
PostgreSQL pg_result_status()
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include 'config.inc';

$db = pg_connect($conn_str);

$sql = "SELECT * FROM ".$table_name." WHERE num = -2";
$result = pg_query($db, "BEGIN;END");

echo pg_result_status($result)."\n";
echo pg_result_status($result, PGSQL_STATUS_STRING)."\n";
?>
--EXPECT--
1
COMMIT