Commit ac53791
committed
Patch Turso effective_temp_store to always return Memory
The disk-temp pager has a state-dependent `short read on page N`
bug that breaks testCreateTemporaryTable +
testTemporaryTableHasPriorityOverStandardTable mid-suite. Setting
PRAGMA temp_store = MEMORY at runtime fixes those tests but
crashes testReconstructTable in Turso's pager — `set_temp_store`
calls `bump_prepare_context_generation` which seems to corrupt
state testReconstructTable depends on later
(project_turso_testreconstructtable_fragile).
Patch `effective_temp_store` in core/connection.rs to return
`TempStore::Memory` unconditionally, at compile time. This forces
`create_temp_database` to take the MemoryIO branch always, but
without going through any runtime mutator, so prepared-statement
caches and other transient state aren't invalidated.1 parent 472d4c4 commit ac53791
1 file changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
598 | 642 | | |
599 | 643 | | |
600 | 644 | | |
| |||
0 commit comments