Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWPWN-0002q8-BX for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jan 2017 15:30:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cWPWM-0000Yw-Px for pgsql-bugs@arkaria.postgresql.org; Wed, 25 Jan 2017 15:30:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWPVi-000848-5d for pgsql-bugs@postgresql.org; Wed, 25 Jan 2017 15:29:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWPVb-0002gT-5o for pgsql-bugs@postgresql.org; Wed, 25 Jan 2017 15:29:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v0PFTDfd009454; Wed, 25 Jan 2017 10:29:13 -0500 From: Tom Lane To: reva.d91@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14514: Bug in Subquery In-reply-to: <20170125072311.1435.32147@wrigleys.postgresql.org> References: <20170125072311.1435.32147@wrigleys.postgresql.org> Comments: In-reply-to reva.d91@gmail.com message dated "Wed, 25 Jan 2017 07:23:11 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9452.1485358153.1@sss.pgh.pa.us> Date: Wed, 25 Jan 2017 10:29:13 -0500 Message-ID: <9453.1485358153@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org reva.d91@gmail.com writes: > It is ignoring the invalid columns in subquery,Instead of throwing the error > 'Column does not exist'. > (eg): > select * from emp where (empname,empid,empno) in(selec emname,emid,emno from > em_details) > Note:There is no emno in em_details table. Maybe not, but if there is one in emp, then this query is legal per SQL spec --- emno is an outer reference. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs