Resolve failures in polymorphism suite by accepting NOTICEs
authorTomas Vondra <[email protected]>
Sun, 19 Mar 2017 00:17:23 +0000 (01:17 +0100)
committerTomas Vondra <[email protected]>
Sun, 19 Mar 2017 00:17:23 +0000 (01:17 +0100)
The query with sql_if()/bleat() calls is expected to produce NOTICE
messages, so just add them to the expected output.

src/test/regress/expected/polymorphism.out

index 74c9209fbd3dd536836ea9ff3ae893dbd929d16c..722c6897bcd0b0ef5ba520db8b2b61500c99d758 100644 (file)
@@ -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