Re: LEFT OUTER JOIN sub-SELECT produces a column != NULL when all NULLs are expected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kirill Simonov <xi(at)resolvent(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: LEFT OUTER JOIN sub-SELECT produces a column != NULL when all NULLs are expected
Date: 2010-09-28 18:24:15
Message-ID: 24750.1285698255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Kirill Simonov <xi(at)resolvent(dot)net> writes:
> I found a bug where a column from a LEFT OUTER JOIN sub-SELECT is not
> equal to NULL when the whole row must be NULL because the join condition
> is not satisfied.

I've applied a patch for this; it'll be in next week's update releases.
Thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message stagirus 2010-09-28 19:14:58 Re: [BUGS] Mapping Hibernate boolean to smallint(Postgresql)
Previous Message Tom Lane 2010-09-28 17:17:56 Re: Unexpected omission of tables with duplicate names across schemas