diff options
| author | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-06 06:42:02 +0000 |
|---|---|---|
| committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-04-06 06:42:02 +0000 |
| commit | 179a52b025afd4def3a117c1a3af28e2d6f07b61 (patch) | |
| tree | e0aab63a76a29c30070da8055a82c3cec3a64108 /ext/pgsql/tests | |
| parent | b2fce9e8936fe4b15feefaf4ce121373b0f42b9d (diff) | |
| download | php-git-179a52b025afd4def3a117c1a3af28e2d6f07b61.tar.gz | |
Chages for new pg_last_notice()
Diffstat (limited to 'ext/pgsql/tests')
| -rw-r--r-- | ext/pgsql/tests/notice.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pgsql/tests/notice.inc b/ext/pgsql/tests/notice.inc index 7764d458ea..4c2b1de49e 100644 --- a/ext/pgsql/tests/notice.inc +++ b/ext/pgsql/tests/notice.inc @@ -1,11 +1,17 @@ <?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"; |
