Skip to content

Deal with text containing NUL bytes #6

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

asedeno
Copy link

@asedeno asedeno commented Jan 14, 2013

SQLITE text columns may contain embedded NUL bytes. Here's a test for making sure we can round-trip such text, and a patch to make the test pass.

lisp->sqlite: Ask babel (already a cffi dependency) for octet count
              rather than telling sqlite to use strlen.

sqlite->lisp: Rewrite #'SQLITE3-COLUMN-TEXT to do conversion with
              explicit count of # SQLITE3-COLUMN-BYTES.
@weatherman2095
Copy link

This should be merged.

I have rebased it onto master be2fcc1 and it works.

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