Repository navigation
Commit 7eef338
committed
Join qualified names without whitespace in stored expressions
The driver stores CHECK and DEFAULT expressions by joining their tokens
with spaces, and it parses them again to create the SQLite table. With
spaces, "t . order" and "order . id" contain the ORDER keyword, and
"t . 1" contains a number, so the stored text no longer parses. For
example, "CHECK (t.order > 0)" failed with an internal error, while
MySQL accepts it.
Join the tokens around "." without whitespace, as the serializer already
does for parentheses, and list each of these token types once.1 parent bc38094 commit 7eef338
2 files changed
Lines changed: 40 additions & 15 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | | - | |
3351 | | - | |
3352 | | - | |
3353 | | - | |
3354 | | - | |
3355 | | - | |
3356 | | - | |
3357 | | - | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
3358 | 3357 | | |
3359 | | - | |
3360 | | - | |
3361 | | - | |
3362 | | - | |
3363 | | - | |
3364 | | - | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
3365 | 3362 | | |
3366 | | - | |
| 3363 | + | |
| 3364 | + | |
3367 | 3365 | | |
3368 | 3366 | | |
3369 | 3367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14520 | 14520 | | |
14521 | 14521 | | |
14522 | 14522 | | |
| 14523 | + | |
| 14524 | + | |
| 14525 | + | |
| 14526 | + | |
| 14527 | + | |
| 14528 | + | |
| 14529 | + | |
| 14530 | + | |
| 14531 | + | |
| 14532 | + | |
| 14533 | + | |
| 14534 | + | |
| 14535 | + | |
| 14536 | + | |
| 14537 | + | |
| 14538 | + | |
| 14539 | + | |
| 14540 | + | |
| 14541 | + | |
| 14542 | + | |
| 14543 | + | |
| 14544 | + | |
| 14545 | + | |
| 14546 | + | |
| 14547 | + | |
| 14548 | + | |
| 14549 | + | |
14523 | 14550 | | |
14524 | 14551 | | |
14525 | 14552 | | |
| |||
0 commit comments