On 9/21/2011 3:05 PM, Sean Pieper wrote:
There's an apparent inconsistency in the behavior of  sqlite3_bind_text and 
sqlite3_prepare_v2.
If the user supplies the length of the argument rather than using -1,
bind_text expects that this length exclude the null termination,

You can include the NUL terminator, if you want it to actually be stored in the database.

whereas prepare apparently expects it to include the null
termination.

What makes you believe that? As far as I know, it should still work if you don't include it.
--
Igor Tandetnik

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

Reply via email to