Thread: 94 ignores missing selectlist

94 ignores missing selectlist

From
"Erik Rijkers"
Date:
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
---123
(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









Re: 94 ignores missing selectlist

From
Marko Tiikkaja
Date:
On 1/30/14, 10:44 AM, Erik Rijkers wrote:
> This seems wrong: in HEAD, an empty select list does *not* generate a error warning anymore:

This is intentional, see 1b4f7f93b4693858cb983af3cd557f6097dab67b


Regards,
Marko Tiikkaja