[MASSMAIL] 回复:BUG #18420: Unexpected values appeared in select query statements that should logically imply each other - Mailing list pgsql-bugs

From 王子涵4620
Subject [MASSMAIL] 回复:BUG #18420: Unexpected values appeared in select query statements that should logically imply each other
Date
Msg-id tencent_A3E843F5788DB46A1C157A5C4830B7F07F08@qq.com
Whole thread Raw
In response to BUG #18420: Unexpected values appeared in select query statements that should logically imply each other  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #18420: Unexpected values appeared in select query statements that should logically imply each other
List pgsql-bugs


I am using my tool to simplify  the SQL query. Can you please confirm if the simplification process helps you diagnose and locate bugs?
----create data----
create table table_3_utf8_undef (
id SERIAL PRIMARY KEY,
"col_varchar(20)_undef_signed" varchar(20)  

) ;
insert into table_3_utf8_undef values (0,'3
'),(1,'well'),(2,'-0');



----sql1----

(SELECT (CEILING(0.248382)) AS "f1"FROM  "table_3_utf8_undef"

WHERE (NOT ('wxynhwi' IN (SELECT  "col_varchar(20)_undef_signed" FROM "table_3_utf8_undef")))
)
UNION (SELECT (CEILING(0.567733)^CEIL(0.891845)) AS "f1" FROM "table_3_utf8_undef");


 f1 
----
  1



----sql2----
(SELECT (CEILING(0.248382)) AS "f1" FROM "table_3_utf8_undef"
WHERE FALSE ) 

UNION (SELECT (CEILING(0.567733)^CEIL(0.891845)) AS "f1" FROM"table_3_utf8_undef");
         f1         
--------------------
 1.0000000000000000

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18420: Unexpected values appeared in select query statements that should logically imply each other
Next
From: David Rowley
Date:
Subject: Re: BUG #18420: Unexpected values appeared in select query statements that should logically imply each other