|
|
|
@ -3,6 +3,8 @@ Bug #32223 (weird behaviour of pg_last_notice using define) |
|
|
|
--SKIPIF-- |
|
|
|
<?php |
|
|
|
require_once('skipif.inc'); |
|
|
|
|
|
|
|
_skip_lc_messages(); |
|
|
|
|
|
|
|
@pg_query($conn, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'"); |
|
|
|
$res = @pg_query($conn, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' |
|
|
|
@ -17,14 +19,15 @@ if (!$res) die('skip PLPGSQL not available'); |
|
|
|
<?php |
|
|
|
|
|
|
|
require_once('config.inc'); |
|
|
|
require_once('lcmess.inc'); |
|
|
|
|
|
|
|
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'"); |
|
|
|
_set_lc_messages(); |
|
|
|
|
|
|
|
$res = pg_query(dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS ' |
|
|
|
begin |
|
|
|
RAISE NOTICE ''11111''; |
|
|
|
|