Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id A92859FA02C for ; Mon, 11 Dec 2006 02:52:00 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 78861-05 for ; Mon, 11 Dec 2006 02:51:58 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.230]) by postgresql.org (Postfix) with ESMTP id 0DA5B9F9F08 for ; Mon, 11 Dec 2006 02:51:59 -0400 (AST) Received: by nz-out-0102.google.com with SMTP id i11so717962nzh for ; Sun, 10 Dec 2006 22:51:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NpPA8PJUwkgFvhGKQ08OpRj7ub7TY0If8qVeyFDrwsEgvfPAhkgB/B5GUdFZubWIJfPkNFuzc7BAbxpgxY5Cp6ufguUHfdyKqofJoeLcIAjir1jJnEmv6UA1L6eKEFKP+kBeLcD93fdg7lBH7q9PVCGfgvEFIUTonGvTWHQUu3g= Received: by 10.35.75.1 with SMTP id c1mr11774316pyl.1165819919095; Sun, 10 Dec 2006 22:51:59 -0800 (PST) Received: by 10.35.80.10 with HTTP; Sun, 10 Dec 2006 22:51:59 -0800 (PST) Message-ID: Date: Mon, 11 Dec 2006 12:21:59 +0530 From: "Rajesh Kumar Mallah" To: "Shoaib Mir" Subject: Re: subquery abnormal behavior Cc: "Postgres SQL language list" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Archive-Number: 200612/85 X-Sequence-Number: 27041 On 12/11/06, Shoaib Mir wrote: > 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! Even in 8.1.5 it does not complain. (its not 8.2 specific at least) Regds mallah. > > Can someone please comment? > > Thank you, > ------------- > Shoaib Mir > EnterpriseDB (www.enterprisedb.com) >