Skip to content

fix(drivers): keep text with a NUL character whole on read and write - #4024

Merged
datlechin merged 8 commits into
mainfrom
fix/sqlite-nul-text
Nov 4, 2026
Merged

datlechin merged 8 commits into
mainfrom
fix/sqlite-nul-text

Conversation

@datlechin

@datlechin datlechin commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Preserve embedded NUL characters when SQLite, local libSQL and Beancount read or bind text.
  • Preserve DuckDB text in mixed and nested results without repeating the statement, including RETURNING values and affected-row counts.
  • Keep DuckDB idle release working while retaining explicit user prepared statements.
  • Preserve iOS SQLite primary-key cell references and SQLite/DuckDB edits containing NUL text.

Test plan

  • SQLite: 23 targeted tests passed, including bound inserts, streaming and edits by a NUL key.
  • LibSQL, Beancount and DuckDB probes passed for NUL/Unicode values, exact keys, streams and replacements or edits.
  • DuckDB probes passed for mixed/nested results, affected counts, read-only access, rollback, schema changes, and idle release/reopen.
  • DuckDB column-type corpus passed all 352 checks; its harness now links the process helper used by SQL export.
  • Local generation, macOS app build, all-plugin build, iOS build-for-testing and lint passed. Local iOS tests were inconclusive because no iPhone simulator is installed.

@datlechin
datlechin enabled auto-merge (squash) November 3, 2026 17:59
@datlechin
datlechin disabled auto-merge November 3, 2026 18:48
@datlechin datlechin added the backport release/0.84 Merged into main; pick onto release/0.84 label Nov 3, 2026
@datlechin
datlechin enabled auto-merge (squash) November 3, 2026 20:57
@datlechin
datlechin merged commit c2d03c7 into main Nov 4, 2026
11 of 12 checks passed
@datlechin
datlechin deleted the fix/sqlite-nul-text branch November 4, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/0.84 Merged into main; pick onto release/0.84

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant