Skip to content

fix: preserve database capacity errors when opening - #15

Merged
MugdhoAI merged 2 commits into
mainfrom
fix/phase2-pager-error-mapping
Nov 3, 2026
Merged

MugdhoAI merged 2 commits into
mainfrom
fix/phase2-pager-error-mapping

Conversation

@MugdhoAI

@MugdhoAI MugdhoAI commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Map PAGER_OUT_OF_PAGES to SQLITE_TABLE_FULL in table_open.
  • Preserve the existing corruption and I/O error mappings.
  • Add a regression test using a page-aligned file larger than TABLE_MAX_PAGES.

Validation

CI validation is pending. No local Windows test run has been performed against this branch.

Scope

This corrects the public error reported when opening a database that exceeds the engine's configured page limit. It does not change valid database files or the on-disk format.

@MugdhoAI
MugdhoAI marked this pull request as ready for review November 3, 2026 21:14
@MugdhoAI
MugdhoAI merged commit 3ab0e0f into main Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant