Re: BUG #14514: Bug in Subquery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: reva(dot)d91(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14514: Bug in Subquery
Date: 2017-01-25 15:29:13
Message-ID: 9453.1485358153@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

reva(dot)d91(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2017-01-25 15:31:27 Re: BUG #14514: Bug in Subquery
Previous Message David G. Johnston 2017-01-25 15:25:50 Re: BUG #14512: Backslashes in LIKE