mirror of
https://github.com/php/php-src.git
synced 2024-11-30 05:13:56 +08:00
19 lines
304 B
PHP
19 lines
304 B
PHP
<?php
|
|
include 'config.inc';
|
|
|
|
ini_set('pgsql.log_notice',1);
|
|
|
|
$db = pg_connect($conn_str);
|
|
pg_query($db, "BEGIN;");
|
|
pg_query($db, "BEGIN;");
|
|
|
|
$msg = pg_last_notice($db);
|
|
if ($msg === FALSE) {
|
|
echo "Cannot find notice message in hash\n";
|
|
var_dump($msg);
|
|
}
|
|
echo $msg;
|
|
echo "pg_last_notice() is Ok\n";
|
|
|
|
?>
|