The following bug has been logged online: Bug reference: 4742 Logged by: Slava Moudry Email address: smou...@4info.net PostgreSQL version: 8.3.0 Operating system: linux Description: wrong resultset instead of syntax error Details:
I believe this is a parser error, it should fail rather than return all rows from keyword since there is no keyword_id in carrier table. The same can be illustrated with any other tables: smslocate_edw=# select count(*) from keyword where keyword_id in (select keyword_id from carrier) smslocate_edw-# ; count ------- 35749 (1 row) smslocate_edw=# select keyword_id from carrier; ERROR: column "keyword_id" does not exist LINE 1: select keyword_id from carrier; ^ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs