Re: [HACKERS] Inconsistent syntax for NumericOnly grammar production

2017-05-29 Thread Vik Fearing
On 05/28/2017 11:16 PM, Tom Lane wrote: > The inconsistency here means that you can do, for example, > > regression=# set random_page_cost = +4; > SET > regression=# set random_page_cost = 4.2; > SET > > but not > > regression=# set random_page_cost = +4.2; > ERROR: syntax error at or near "4.2

[HACKERS] Inconsistent syntax for NumericOnly grammar production

2017-05-28 Thread Tom Lane
I noticed that gram.y has NumericOnly: FCONST { $$ = makeFloat($1); } | '-' FCONST { $$ = makeFloat($2); doNegateFloat($$); } | SignedIconst