Re: Misnamed field in subquery does not cause error when field name exists in parent query - Mailing list pgsql-sql

From Rick Innis
Subject Re: Misnamed field in subquery does not cause error when field name exists in parent query
Date
Msg-id D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com
Whole thread Raw
In response to Re: Misnamed field in subquery does not cause error when field name exists in parent query  (Michael Glaesemann <grzm@seespotcode.net>)
List pgsql-sql
On 22-Dec-07, at 7:14 PM, Michael Glaesemann wrote:

>
>> It may be that SQL is doing exactly as it should, since 'id' is in  
>> scope within the subselect, but  if that's the case it's a nasty  
>> gotcha.
>
> Yes, and yes.

Ow. Thanks for confirming both my suspicions and my fears :-)

R.



pgsql-sql by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: slow query - only uses indices
Next
From: Richard Broersma Jr
Date:
Subject: Advice for generalizing trigger functions