Skip to content

Commit e960eeb

Browse files
author
Yasuo Ohgaki
committed
Revise pgsql tests
1 parent 0c4ba51 commit e960eeb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ext/pgsql/tests/80_bug32223.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ begin
3737
end;
3838
' LANGUAGE plpgsql;");
3939

40-
40+
$res = pg_query($dbh, 'SET client_min_messages TO NOTICE;');
41+
var_dump($res);
4142
$res = pg_query($dbh, 'SELECT test_notice()');
4243
var_dump($res);
4344
$row = pg_fetch_row($res, 0);
@@ -54,6 +55,7 @@ pg_close($dbh);
5455
===DONE===
5556
--EXPECTF--
5657
resource(%d) of type (pgsql result)
58+
resource(%d) of type (pgsql result)
5759
array(1) {
5860
[0]=>
5961
string(1) "f"

ext/pgsql/tests/80_bug32223b.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ begin
3737
end;
3838
' LANGUAGE plpgsql;");
3939

40+
$res = pg_query($dbh, 'SET client_min_messages TO NOTICE;');
41+
var_dump($res);
42+
4043
function tester() {
4144
$res = pg_query(dbh, 'SELECT test_notice()');
4245
$row = pg_fetch_row($res, 0);
@@ -54,6 +57,8 @@ pg_close(dbh);
5457
?>
5558
===DONE===
5659
--EXPECTF--
60+
resource(%d) of type (pgsql result)
61+
resource(%d) of type (pgsql result)
5762
array(1) {
5863
[0]=>
5964
string(1) "f"

0 commit comments

Comments
 (0)