Hi,

It seems to me that there is some inconsistency in the API. Some APIs that
take a string have an option to pass the length in order to improve
performance. Some, like sqlite3_prepare*, *include* the terminating NULL in
the length, so for "abcd" the number passed would be 5. Others, like
sqlite3_bind_text*, *don;t* count the terminating NULL, so for the above
string it would be 4.
Is there some fundamental difference between these two APIs that cause this
difference to make sense, am I misunderstanding the docs and they *do* in
fact use the same number (4 or 5?), or is it just an inconsistency that I
should live with?

Baruch

-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to