pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #13420: Array function contains with null 2+ messages / 2 participants [nested] [flat]
* BUG #13420: Array function contains with null @ 2015-06-09 11:29 krzysztof.czajka@turcom.pl 2015-06-09 13:50 ` Re: BUG #13420: Array function contains with null Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: krzysztof.czajka@turcom.pl @ 2015-06-09 11:29 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 13420 Logged by: Krzysztof Czajka Email address: krzysztof.czajka@turcom.pl PostgreSQL version: 9.3.8 Operating system: CentOS release 6.6 (Final) Description: Function contains on array with null element isn't work correctly. SELECT ARRAY[1,4,3] @> ARRAY[3,1] true SELECT ARRAY[ NULL ] @> ARRAY[ NULL ] false SELECT ARRAY[ NULL::varchar,'2' ] @> ARRAY[ NULL::varchar ] false -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #13420: Array function contains with null 2015-06-09 11:29 BUG #13420: Array function contains with null krzysztof.czajka@turcom.pl @ 2015-06-09 13:50 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2015-06-09 13:50 UTC (permalink / raw) To: krzysztof.czajka@turcom.pl; +Cc: pgsql-bugs krzysztof.czajka@turcom.pl writes: > Function contains on array with null element isn't work correctly. > SELECT ARRAY[1,4,3] @> ARRAY[3,1] > true > SELECT ARRAY[ NULL ] @> ARRAY[ NULL ] > false > SELECT ARRAY[ NULL::varchar,'2' ] @> ARRAY[ NULL::varchar ] > false That looks fine to me, because NULL isn't equal to NULL. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-06-09 13:50 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-06-09 11:29 BUG #13420: Array function contains with null krzysztof.czajka@turcom.pl 2015-06-09 13:50 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox