mirror of
https://github.com/php/php-src.git
synced 2024-12-15 21:05:51 +08:00
20 lines
362 B
PHP
20 lines
362 B
PHP
--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
|