Skip to content

fix(libsql): preserve binary values in remote queries - #4379

Merged
datlechin merged 2 commits into
TableProApp:mainfrom
shuvroroy:fix/libsql-remote-blobs
Nov 21, 2026
Merged

datlechin merged 2 commits into
TableProApp:mainfrom
shuvroroy:fix/libsql-remote-blobs

Conversation

@shuvroroy

@shuvroroy shuvroroy commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Keep remote libSQL and Turso BLOBs as bytes in query results and streams. Accept padded and unpadded Base64 and reject malformed cells.
  • Send Base64 parameters with literal slashes. A self-hosted sqld rejects an escaped slash in that field.

Paired documentation: TableProApp/docs#260.

Test plan

  • Reproduced the empty results for one and two bytes on main. Checked padded and unpadded values from 0 through 257 bytes and eight malformed inputs with the updated decoder.
  • Ran the new probe against sqld 0.24.32 with the built plugin. Buffered reads, streamed reads and a bound BLOB all preserved the bytes and the SQL types.
  • The macOS app, AllPlugins, SwiftLint and all eight PluginCellValueSortKeyTests passed locally.

@datlechin
datlechin merged commit 759f815 into TableProApp:main Nov 21, 2026
90 of 93 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.

2 participants