From: Michael Glaesemann <grzm@seespotcode.net>
To: Rick Innis <rick.innis@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Misnamed field in subquery does not cause error when field name exists in parent query
Date: Sat, 22 Dec 2007 19:14:26 -0500
Message-ID: <BC106A18-B0D3-492D-A4C6-2E60A7E207CA@seespotcode.net> (raw)
In-Reply-To: <1B7BB76A-D750-4808-8104-2EC50DDB2FBA@gmail.com>
References: <1B7BB76A-D750-4808-8104-2EC50DDB2FBA@gmail.com>
On Dec 22, 2007, at 17:12 , Rick Innis 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.
Michael Glaesemann
grzm seespotcode net
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: grzm@seespotcode.net, rick.innis@gmail.com
Subject: Re: Misnamed field in subquery does not cause error when field name exists in parent query
In-Reply-To: <BC106A18-B0D3-492D-A4C6-2E60A7E207CA@seespotcode.net>
* 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