Files
postgresql/src
Tom Lane dd1daa03bc Allow NumericOnly to be "+ FCONST".
The NumericOnly grammar production accepted ICONST, + ICONST, - ICONST,
FCONST, and - FCONST, but for some reason not + FCONST.  This led to
strange inconsistencies like

regression=# set random_page_cost = +4;
SET
regression=# set random_page_cost = 4000000000;
SET
regression=# set random_page_cost = +4000000000;
ERROR:  syntax error at or near "4000000000"

(because 4000000000 is too large to be an ICONST).  While there's
no actual functional reason to need to write a "+", if we allow
it for integers it seems like we should allow it for numerics too.

It's been like that forever, so back-patch to all supported branches.

Discussion: https://postgr.es/m/30908.1496006184@sss.pgh.pa.us
2017-05-29 15:19:07 -04:00
..
2016-06-09 18:02:36 -04:00
2017-05-08 17:15:12 -04:00
2016-01-28 16:47:36 +09:00
2017-05-08 10:10:54 -04:00
2017-05-08 17:15:12 -04:00
2017-05-16 08:52:39 -04:00
2016-01-02 13:33:40 -05:00
2017-02-06 11:34:15 +02:00