On 7/15/2013 3:13 PM, nic...@mail.ru wrote:
Prepared statement SQL: "INSERT INTO tbl VALUES(?1);"
Column type:TEXT

String to bind (ASCII, zero terminated): "abcd.ef"

nBytes parameter: -1
destructor parameter: SQLITE_STATIC

Result after call sqlite3_step: "abcd"

Works for me. There's must be a bug in your code somewhere. Your program is inserting a NUL terminator into the string.

With nBytes==(len(String)) there's no problem, result=="abcd.ef"
But then there's no way to bind parameter only once with the same text
buffer.

Why? I don't quite see how the conclusion follows from the premise.
--
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to