Repository navigation
Commit 9663289
authored
feat: parse INSERT OR ABORT, FAIL, IGNORE and ROLLBACK (SQLite) (#2853)
* feat: parse INSERT OR ABORT, FAIL, IGNORE and ROLLBACK (SQLite)
UpsertType and the deparsers already had these values, but the grammar
only accepted INSERT OR REPLACE.
Part of #2852
* feat: guard INSERT OR conflict clauses by the SQLITE dialect
Add Dialect.SQLITE. INSERT OR ABORT, FAIL, IGNORE and ROLLBACK need it.
INSERT OR REPLACE keeps parsing in every dialect.
* fix: keep CCJSqlParser under the class size limit for JaCoCo
The extra INSERT OR alternatives pushed the constant pool of CCJSqlParser
past 65535 entries once JaCoCo instrumented it, so the class was silently
left without coverage data and the coverage check failed. Parse the
algorithm with RelObjectName and decide in AbstractJSqlParser instead.1 parent aa599ba commit 9663289
4 files changed
Lines changed: 66 additions & 2 deletions
File tree
- src
- main
- java/net/sf/jsqlparser/parser
- jjtree/net/sf/jsqlparser/parser
- site/sphinx
- test/java/net/sf/jsqlparser/statement/select
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
262 | 287 | | |
263 | 288 | | |
264 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8098 | 8098 | | |
8099 | 8099 | | |
8100 | 8100 | | |
| 8101 | + | |
8101 | 8102 | | |
8102 | 8103 | | |
8103 | 8104 | | |
| |||
8114 | 8115 | | |
8115 | 8116 | | |
8116 | 8117 | | |
8117 | | - | |
| 8118 | + | |
| 8119 | + | |
| 8120 | + | |
| 8121 | + | |
8118 | 8122 | | |
8119 | 8123 | | |
8120 | 8124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| 1607 | + | |
| 1608 | + | |
1607 | 1609 | | |
1608 | 1610 | | |
1609 | 1611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
22 | 55 | | |
0 commit comments