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, whereas prepare 
apparently expects it to include the null termination.

Since this is kind of surprising, it would be helpful if the documentation for 
each function directly stated the desired behavior for explicit declaration of 
length, rather than leaving the reader to look through the description of how 
auto-detection of length works in each case.

-sean

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to