summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-03-19 00:17:23 +0000
committerTomas Vondra2017-03-19 00:17:23 +0000
commit070ec85317f5ba6c725c74735c04fdc382573a12 (patch)
tree14df36f859747a6067da9e8d9cfa134f91134b08
parent58ad0411dffe11b9a13d25f3ee5b0aa94100e25d (diff)
Resolve failures in polymorphism suite by accepting NOTICEs
The query with sql_if()/bleat() calls is expected to produce NOTICE messages, so just add them to the expected output.
-rw-r--r--src/test/regress/expected/polymorphism.out5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/regress/expected/polymorphism.out b/src/test/regress/expected/polymorphism.out
index 74c9209fbd..722c6897bc 100644
--- a/src/test/regress/expected/polymorphism.out
+++ b/src/test/regress/expected/polymorphism.out
@@ -554,6 +554,11 @@ select case when $1 then $2 else $3 end $$ language sql;
-- Note this would fail with integer overflow, never mind wrong bleat() output,
-- if the CASE expression were not successfully inlined
select f1, sql_if(f1 > 0, bleat(f1), bleat(f1 + 1)) from (select * from int4_tbl order by f1) q order by 1, 2;
+NOTICE: bleat -2147483646
+NOTICE: bleat -123455
+NOTICE: bleat 1
+NOTICE: bleat 123456
+NOTICE: bleat 2147483647
f1 | sql_if
-------------+-------------
-2147483647 | -2147483646