forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit98b4f53
committed
Re-forbid underscore in positional parameters
Underscores were added to numeric literals infaff8f8. This changealso affected the positional parameters (e.g., $1) rule, which usesthe same production for its digits. But this did not actually work,because the digits for parameters are processed using atol(), whichdoes not handle underscores and ignores whatever it cannot parse.The underscores notation is probably not useful for positionalparameters, so for simplicity revert that rule to its old form thatonly accepts digits 0-9.Author: Erik Wienhold <ewie@ewie.name>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://www.postgresql.org/message-id/flat/5d216d1c-91f6-4cbe-95e2-b4cbd930520c%40ewie.name1 parent96bc29e commit98b4f53
File tree
5 files changed
+14
-6
lines changed- src
- backend/parser
- fe_utils
- interfaces/ecpg/preproc
- test/regress
- expected
- sql
5 files changed
+14
-6
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
419 | 419 |
| |
420 | 420 |
| |
421 | 421 |
| |
422 |
| - | |
423 |
| - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
424 | 425 |
| |
425 | 426 |
| |
426 | 427 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
358 |
| - | |
359 |
| - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
360 | 361 |
| |
361 | 362 |
| |
362 | 363 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
392 |
| - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
393 | 394 |
| |
394 | 395 |
| |
395 | 396 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
333 | 337 |
| |
334 | 338 |
| |
335 | 339 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
|
0 commit comments
Comments
(0)