aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-05-29 15:19:07 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-05-29 15:19:07 -0400
commit4051dfe5962c37b596afe60a2dd76dd1192b180c (patch)
tree58d50345733c63e1ecf073600e15ab2226f2cf22 /contrib/postgres_fdw/postgres_fdw.c
parent8f62b388b5c946cc1c6e5c1c6fd5cff0865b46a9 (diff)
downloadpostgresql-4051dfe5962c37b596afe60a2dd76dd1192b180c.tar.gz
postgresql-4051dfe5962c37b596afe60a2dd76dd1192b180c.zip
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions