mwild1 / luadbi

Multi-backend SQL database library for Lua
MIT License
38 stars 14 forks source link

sqlite3 does not allow strings with NULL characters #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Insert a string with a null character ("\000") into a blob field.
2. Check the database.

What is the expected output? What do you see instead?
I expect the full string, but I get the string until the first null character.

Attached patch fixes this issue.

Original issue reported on code.google.com by thijsalk...@gmail.com on 22 Sep 2013 at 10:20

GoogleCodeExporter commented 8 years ago

Original comment by thijsalk...@gmail.com on 22 Sep 2013 at 10:24

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by MWild1 on 22 Sep 2013 at 10:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 53a29a4e75b5.

Original comment by MWild1 on 30 Jul 2014 at 10:11

GoogleCodeExporter commented 8 years ago
Pushed, thanks for the patch!

Original comment by MWild1 on 30 Jul 2014 at 10:12