Commit 8e8ef72
fix: invalidate rusqlite schema cache for attached databases in simulator
The differential simulator's SQLite schema cache workaround
(pragma_user_version query) only invalidated the main database's schema.
When ALTER TABLE DROP COLUMN was executed on an attached database, other
rusqlite connections still saw the old column count, causing false
divergences between limbo and rusqlite.
Fix by also querying {db_name}.sqlite_master for each attached database,
which forces SQLite to re-read the attached database's schema.
Discovered via seed: 12173377563160143215
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e2487bc commit 8e8ef72
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | | - | |
| 368 | + | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| |||
440 | 441 | | |
441 | 442 | | |
442 | 443 | | |
| 444 | + | |
443 | 445 | | |
444 | 446 | | |
445 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
446 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
447 | 461 | | |
448 | 462 | | |
449 | 463 | | |
| |||
0 commit comments