Commit 744dfc1
committed
fix(parser): allow VERSION in ALTER column clauses
VERSION is non-reserved, but restricted legacy productions reject it in DROP COLUMN and USING clauses. Accept the token in those productions and cover both PostgreSQL corpus cases.1 parent 9a32ff5 commit 744dfc1
2 files changed
Lines changed: 11 additions & 1 deletion
File tree
- src
- main/jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/alter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2140 | 2140 | | |
2141 | 2141 | | |
2142 | 2142 | | |
| 2143 | + | |
2143 | 2144 | | |
2144 | 2145 | | |
2145 | 2146 | | |
| |||
11942 | 11943 | | |
11943 | 11944 | | |
11944 | 11945 | | |
11945 | | - | |
| 11946 | + | |
11946 | 11947 | | |
11947 | 11948 | | |
11948 | 11949 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
651 | 660 | | |
652 | 661 | | |
653 | 662 | | |
| |||
0 commit comments