- Notifications
You must be signed in to change notification settings - Fork28
Commitdd1daa0
committed
Allow NumericOnly to be "+ FCONST".
The NumericOnly grammar production accepted ICONST, + ICONST, - ICONST,FCONST, and - FCONST, but for some reason not + FCONST. This led tostrange inconsistencies likeregression=# set random_page_cost = +4;SETregression=# set random_page_cost = 4000000000;SETregression=# set random_page_cost = +4000000000;ERROR: syntax error at or near "4000000000"(because 4000000000 is too large to be an ICONST). While there'sno actual functional reason to need to write a "+", if we allowit 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.us1 parentacab87e commitdd1daa0
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3688 | 3688 |
| |
3689 | 3689 |
| |
3690 | 3690 |
| |
| 3691 | + | |
3691 | 3692 |
| |
3692 | 3693 |
| |
3693 | 3694 |
| |
|
0 commit comments
Comments
(0)