pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: Postgres SQL language list <pgsql-sql@postgresql.org>
Subject: subquery abnormal behavior
Date: Mon, 11 Dec 2006 11:48:03 +0500
Message-ID: <bf54be870612102248j33f63ca1gd89e76d536a0262c@mail.gmail.com> (raw)

I just noticed an abnormal behavior for the subquery:

create table myt1 (a numeric);
create table myt2 (b numeric);

select a from myt1 where a in (select a from myt2);

This should be giving an error that column 'a' does not exist in myt2 but it
runs with any error...

I had been trying it on 8.2!

Can someone please comment?

Thank you,
-------------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

view thread (6+ messages)  latest in thread

Message-ID: <bf54be870612102248j33f63ca1gd89e76d536a0262c@mail.gmail.com>
Permalink:  ../bf54be870612102248j33f63ca1gd89e76d536a0262c@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870612102248j33f63ca1gd89e76d536a0262c@mail.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: shoaibmir@gmail.com
  Subject: Re: subquery abnormal behavior
  In-Reply-To: <bf54be870612102248j33f63ca1gd89e76d536a0262c@mail.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