Commit 7f630ea
committed
Allow DELETE on sqlite_sequence in Turso
Real SQLite permits DELETE FROM sqlite_sequence as the documented way
to reset an AUTOINCREMENT counter after TRUNCATE. Turso's delete
translator blocks any table starting with "sqlite_"; exempt
sqlite_sequence specifically.
Fixes the "AUTO_INCREMENT not reset after TRUNCATE" failures in
testInformationSchemaTablesAutoIncrement, testShowTableStatusAutoIncrement,
etc. (the driver issues DELETE FROM sqlite_sequence WHERE name=... as
the TRUNCATE emulation path).1 parent 70393ec commit 7f630ea
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
407 | 436 | | |
408 | 437 | | |
409 | 438 | | |
| |||
0 commit comments