Repository navigation
Commit 731a817
authored
fix: accept named FOREIGN KEY and CHECK drops without a dialect (#2789)
ALTER TABLE ... DROP FOREIGN KEY fk and DROP CHECK ck were only accepted
with Dialect.MYSQL, so the default parser configuration rejected these
common MySQL actions (#990, #1129). Accept them without a dialect as in
MySQL, accept the named FOREIGN KEY form for MariaDB, which has no DROP
CHECK, and keep rejecting them in other dialects. A parenthesized
FOREIGN KEY column list keeps the legacy form.
Signed-off-by: minleejae <mmj9808@gmail.com>1 parent 0986304 commit 731a817
3 files changed
Lines changed: 68 additions & 6 deletions
File tree
- src
- main/jjtree/net/sf/jsqlparser/parser
- site/sphinx
- test/java/net/sf/jsqlparser/statement/alter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
2069 | 2084 | | |
2070 | 2085 | | |
2071 | 2086 | | |
| |||
18601 | 18616 | | |
18602 | 18617 | | |
18603 | 18618 | | |
18604 | | - | |
18605 | | - | |
18606 | | - | |
18607 | | - | |
| 18619 | + | |
18608 | 18620 | | |
18609 | 18621 | | |
18610 | 18622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
81 | 128 | | |
82 | 129 | | |
83 | 130 | | |
| |||
0 commit comments