Repository navigation
Commit b1c903b
committed
fix: accept named FOREIGN KEY and CHECK drops without a dialect
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 166f0a2 commit b1c903b
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 | |
|---|---|---|---|
| |||
1843 | 1843 | | |
1844 | 1844 | | |
1845 | 1845 | | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1846 | 1861 | | |
1847 | 1862 | | |
1848 | 1863 | | |
| |||
18154 | 18169 | | |
18155 | 18170 | | |
18156 | 18171 | | |
18157 | | - | |
18158 | | - | |
18159 | | - | |
18160 | | - | |
| 18172 | + | |
18161 | 18173 | | |
18162 | 18174 | | |
18163 | 18175 | | |
| |||
| 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