Re: [BUGS] No error reported when field in subselect is not part of

2003-01-27 Thread Stephan Szabo
On Mon, 27 Jan 2003, Jean-Luc Lachance wrote: > There is no error reported when a field in the subselect is not part of > the subselect table > but exists in the main table. > > Try This: > > nsd=# create table a ( f1 int, f2 text); > CREATE > nsd=# create table b ( f3 int, f4 text); > CREATE > ns

[BUGS] No error reported when field in subselect is not part of the table but exists in the main table.

2003-01-27 Thread Jean-Luc Lachance
There is no error reported when a field in the subselect is not part of the subselect table but exists in the main table. Try This: nsd=# create table a ( f1 int, f2 text); CREATE nsd=# create table b ( f3 int, f4 text); CREATE nsd=# select * from a where f1 in ( select f1 from b); f1 | f2 ---