forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcf374fe
committed
>Turning nextval and currval into keywords is not an acceptable way to
>go about this. That will risk breaking existing applications that use>those names as column names.>>It should actually almost work to write sq.nextval as things stand,>because Postgres has for a long time considered table.function and>function(table) to be interchangeable notations for certain kinds of>functions. nextval doesn't seem to be one of that kind of function,>at the moment. I'd suggest leaving the grammar as it was, and taking a>look at ParseFuncOrColumn in parse_func.c to see if you can't persuade>it to accept the sequence functions in that style.OK, good point. I tried to implement it somewhere else and ended upextending transformAttr. Attached you'll find the patch.Jeroen van Vianen1 parent99b8f84 commitcf374fe
1 file changed
+25
-1
lines changedLines changed: 25 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
534 | 558 |
| |
535 | 559 |
| |
536 | 560 |
| |
|
0 commit comments
Comments
(0)