pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rick Innis <rick.innis@gmail.com>
To: Michael Glaesemann <grzm@seespotcode.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Misnamed field in subquery does not cause error when field name exists in parent query
Date: Mon, 24 Dec 2007 14:25:33 -0500
Message-ID: <D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com> (raw)
In-Reply-To: <BC106A18-B0D3-492D-A4C6-2E60A7E207CA@seespotcode.net>
References: <1B7BB76A-D750-4808-8104-2EC50DDB2FBA@gmail.com>
	<BC106A18-B0D3-492D-A4C6-2E60A7E207CA@seespotcode.net>


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.




view thread (3+ messages)

Message-ID: <D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com>
Permalink:  ../D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com/
Also on:    postgresql.org/message-id/D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rick.innis@gmail.com, grzm@seespotcode.net
  Subject: Re: Misnamed field in subquery does not cause error when field name exists in parent query
  In-Reply-To: <D3AD3174-312F-4D33-B705-41FC255A89E9@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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