94 ignores missing selectlist

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: pgsql-hackers(at)postgresql(dot)org
Subject: 94 ignores missing selectlist
Date: 2014-01-30 09:44:06
Message-ID: e2b279aee920e74832f3325596e12e75.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This seems wrong: in HEAD, an empty select list does *not* generate a error warning anymore:

$ psql -X
psql (9.4devel_HEAD_20140130_0805_571addd)
Type "help" for help.

testdb=# create table t as select i from generate_series(1,3) as f(i);
SELECT 3
testdb=# select * from t;
i
---
1
2
3
(3 rows)

testdb=# select from t;
--
(3 rows)

Surely the behaviour of v9.3, which complains healthily with:

ERROR: syntax error at or near "from"
LINE 1: select from t;

is to be preferred.

thanks,

Erik Rijkers

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Tiikkaja 2014-01-30 09:51:17 Re: 94 ignores missing selectlist
Previous Message Jeevan Chalke 2014-01-30 09:37:07 Re: [PATCH] Filter error log statements by sqlstate