Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsql-sqlite3: Fix libsql_wal_frame_count() for empty databases #1843

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

penberg
Copy link
Collaborator

@penberg penberg commented Nov 26, 2024

If a database is empty, the pagerUseWal() returns false. In that case, make libsql_wal_frame_count() return zero instead of a logic error.

If a database is empty, the pagerUseWal() returns false. In that case,
make libsql_wal_frame_count() return zero instead of a logic error.
@penberg penberg enabled auto-merge November 26, 2024 13:32
@penberg penberg added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit 54d3bdc Nov 26, 2024
19 checks passed
@penberg penberg deleted the fix-wal-count branch November 26, 2024 14:12
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.

2 participants