forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9812138
committed
ecpg: avoid breaking the IDENT precedence level in two.
Careless string hacking caused parse.pl to transform gram.y'sdeclaration%nonassoc IDENT PARTITION RANGE ROWS ...into%nonassoc IDENT%nonassoc CSTRING PARTITION RANGE ROWS ...It turns out that this has no semantic impact, because thegenerated preproc.c is exactly the same either way (if youinject a blank line to keep line numbers the same).Nonetheless, given the great emphasis that the commentary ingram.y places on keeping those other keywords at the sameprecedence level as IDENT, this seems like foolishly risking ecpgbehaving differently from the core parser. Adjust the code sothat CSTRING is added to the precedence line without breaking itinto two lines.Discussion:https://postgr.es/m/2157151.1713540065@sss.pgh.pa.us1 parentf244a2b commit9812138
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 |
| - | |
293 |
| - | |
| 292 | + | |
294 | 293 |
| |
295 | 294 |
| |
296 |
| - | |
| 295 | + | |
297 | 296 |
| |
298 | 297 |
| |
299 | 298 |
| |
|
0 commit comments
Comments
(0)