diff options
Diffstat (limited to 'ext/pgsql/tests/80_bug32223b.phpt')
| -rwxr-xr-x | ext/pgsql/tests/80_bug32223b.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pgsql/tests/80_bug32223b.phpt b/ext/pgsql/tests/80_bug32223b.phpt index 010915e82c..98e4723889 100755 --- a/ext/pgsql/tests/80_bug32223b.phpt +++ b/ext/pgsql/tests/80_bug32223b.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #32223 (weird behaviour of pg_last_notice using notice) +Bug #32223 (weird behaviour of pg_last_notice using define) --SKIPIF-- <?php require_once('skipif.inc'); @@ -16,13 +16,13 @@ if (!$res) die('skip PLPGSQL not available'); --FILE-- <?php -require('config.inc'); +require_once('config.inc'); -define ('dbh', pg_connect($conn_str)); -//$dbh = @pg_connect($conn_str); +define('dbh', pg_connect($conn_str)); if (!dbh) { die ("Could not connect to the server"); } +pg_exec(dbh, "SET LC_MESSAGES='C';"); //@pg_query(dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'"); $res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' |
