Commit 44c0fe5
authored
fix(parser): support IF EXISTS in ALTER TABLE MODIFY COLUMN (#2494)
- accept both IF EXISTS and IF NOT EXISTS with optional COLUMN
- preserve existence clauses when deparsing
- add round-trip and AST regression tests1 parent 158b580 commit 44c0fe5
3 files changed
Lines changed: 30 additions & 3 deletions
File tree
- src
- main
- java/net/sf/jsqlparser/statement/alter
- jjtree/net/sf/jsqlparser/parser
- test/java/net/sf/jsqlparser/statement/alter
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
1121 | | - | |
1122 | | - | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1123 | 1124 | | |
1124 | 1125 | | |
1125 | 1126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12661 | 12661 | | |
12662 | 12662 | | |
12663 | 12663 | | |
12664 | | - | |
| 12664 | + | |
| 12665 | + | |
| 12666 | + | |
| 12667 | + | |
| 12668 | + | |
| 12669 | + | |
| 12670 | + | |
| 12671 | + | |
12665 | 12672 | | |
12666 | 12673 | | |
12667 | 12674 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1112 | 1131 | | |
1113 | 1132 | | |
1114 | 1133 | | |
| |||
0 commit comments