File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
13
13
$ db = PDOTest::test_factory (dirname (__FILE__ ) . '/common.phpt ' );
14
14
$ db ->setAttribute (PDO ::ATTR_ERRMODE , PDO ::ERRMODE_SILENT );
15
15
16
+ $ db ->exec ("SET LC_MESSAGES='C' " );
16
17
$ db ->exec ('CREATE TABLE test (foo varchar(5) NOT NULL, bar bool NOT NULL) ' );
17
18
$ db ->exec ("INSERT INTO test VALUES('false','f') " );
18
19
$ db ->exec ("INSERT INTO test VALUES('true', 't') " );
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pgsql.ignore_notices=0
10
10
include 'config.inc ' ;
11
11
12
12
$ db = pg_connect ($ conn_str );
13
+ pg_exec ($ db , "SET LC_MESSAGES='C'; " );
13
14
pg_query ($ db , "BEGIN; " );
14
15
pg_query ($ db , "BEGIN; " );
15
16
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ $dbh = @pg_connect($conn_str);
22
22
if (!$ dbh ) {
23
23
die ("Could not connect to the server " );
24
24
}
25
+ pg_exec ($ dbh , "SET LC_MESSAGES='C'; " );
25
26
26
27
//@pg_query($dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
27
28
$ res = pg_query ($ dbh , "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '
Original file line number Diff line number Diff line change 1
1
--TEST--
2
- Bug #32223 (weird behaviour of pg_last_notice using notice )
2
+ Bug #32223 (weird behaviour of pg_last_notice using define )
3
3
--SKIPIF--
4
4
<?php
5
5
require_once ('skipif.inc ' );
@@ -16,13 +16,13 @@ if (!$res) die('skip PLPGSQL not available');
16
16
--FILE--
17
17
<?php
18
18
19
- require ('config.inc ' );
19
+ require_once ('config.inc ' );
20
20
21
- define ('dbh ' , pg_connect ($ conn_str ));
22
- //$dbh = @pg_connect($conn_str);
21
+ define ('dbh ' , pg_connect ($ conn_str ));
23
22
if (!dbh) {
24
23
die ("Could not connect to the server " );
25
24
}
25
+ pg_exec (dbh, "SET LC_MESSAGES='C'; " );
26
26
27
27
//@pg_query(dbh, "CREATE LANGUAGE 'plpgsql' HANDLER plpgsql_call_handler LANCOMPILER 'PL/pgSQL'");
28
28
$ res = pg_query (dbh, "CREATE OR REPLACE FUNCTION test_notice() RETURNS boolean AS '
You can’t perform that action at this time.
0 commit comments