Fix integrity checks for WITHOUT ROWID and FTS5 tables #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/integrity-virtual-table-schema"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PRAGMA integrity_checktreated every stored table as a rowid B-tree. ValidWITHOUT ROWIDtables use index B-trees, so a schema containing one (including an FTS5 shadow table) raisedSQLITE_CORRUPT: expected a table b-tree page.Select the existing index reader for
WITHOUT ROWIDstorage while retaining CHECK constraint verification. This fixes direct and table-valuedintegrity_check/quick_checkqueries. Version advances to 0.1.5; the compatibility notes retain the existing limits of the integrity audit.Validation on macOS arm64:
make build,make unit, andmake binarypassed with the existing jerbuild toolchain.tests/unit/test-pragma.ss: 283 checks, zero failures or errors (12 new checks).--help,make security, changed-line security scan, andgit diff --checkpassed.make diffexplicitly skipped: the optional reference checkout is absent. No SQLite FFI was used.No target-host deployment or production claim is included.