Mon, Dec 05, 2005 at 08:23:19AM -0500, drh (AT) hwaci (DOT) com wrote:
K, so 1.11 is on CPAN which fixes this. However I have another bug
report about this not working for user defined functions, where I do
this:
s = SvPV(result, len);
sqlite3_result_text( context, s, len, SQLITE_TRANSIENT );
I'm the original reporter of that bug, and I can confirm that while it
did not work in DBD::SQLite 1.09, it works without problem in 1.11.
sqlite3_result_text() appears to deal fine with embedded NUL's.
Attached is a tiny C program I just used to confirm this to myself.
Large thanks to Matt and Richard for so quickly ending up with a great
solution that just transparently works!