[issue13676] sqlite3: Zero byte truncates string contents

Petri Lehtinen report at bugs.python.org
Fri Dec 30 10:38:05 CET 2011


Petri Lehtinen <petri at digip.org> added the comment:

What? Don't you SEE that it works correctly? :)

Attached an updated patch with a test case.

FTR, I also tried to make it possible to have the SQL statement include a zero byte, but it seems that sqlite3_prepare() (and also the newer sqlite3_prepare_v2()) always stops reading at the zero byte. See:

    http://www.sqlite.org/c3ref/prepare.html

----------
Added file: http://bugs.python.org/file24111/sqlite3_zero_byte_v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13676>
_______________________________________


More information about the Python-bugs-list mailing list