2002-04-05 06:30:18 +00:00
|
|
|
--TEST--
|
|
|
|
PostgreSQL notice function
|
|
|
|
--SKIPIF--
|
|
|
|
<?php include("skipif.inc"); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2003-05-20 00:14:46 +00:00
|
|
|
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";
|
|
|
|
|
2002-04-05 06:30:18 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
2002-04-05 07:57:33 +00:00
|
|
|
NOTICE: BEGIN: already a transaction in progress
|
|
|
|
|
2002-04-05 06:30:18 +00:00
|
|
|
NOTICE: BEGIN: already a transaction in progress
|
|
|
|
pg_last_notice() is Ok
|