From: Tomas Vondra Date: Sun, 19 Mar 2017 00:17:23 +0000 (+0100) Subject: Resolve failures in polymorphism suite by accepting NOTICEs X-Git-Tag: XL_10_R1BETA1~366 X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=070ec85317f5ba6c725c74735c04fdc382573a12;p=postgres-xl.git 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. --- 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