Re: subselect on nonexistent column succeeds!!?! - Mailing list pgsql-bugs

From James Robinson
Subject Re: subselect on nonexistent column succeeds!!?!
Date
Msg-id D358DF8C-CB96-11D8-8888-000A9566A412@socialserve.com
Whole thread Raw
In response to subselect on nonexistent column succeeds!!?!  (James Robinson <jlrobins@socialserve.com>)
List pgsql-bugs
Aha. Well, you learn something new every day. Yes, the behavior is
indeed like "contact_id is not null", which was true for all rows in
users, which explains why I lost all my data in realtycompany_contacts.

Thank goodness for backups. Many thanks!

James

On Jul 1, 2004, at 3:35 PM, Stephan Szabo wrote:

> AFAIK the spec requires that subselects like that can reference outer
> columns so contact_id inside the subselect refers to the outer
> contact_id
> column which does exist (which makes the effective behavior of the
> above
> clause the same as contact_id is not null I think)
>
----
James Robinson
Socialserve.com

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem to increase name data length
Next
From: Stephan Szabo
Date:
Subject: Re: Possible bug?