On Mon, May 26, 2014 at 9:40 AM, Baruch Burstein <[email protected]>wrote:

> 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?
>
> Differences are an historical accident.  They cannot be fixed now without
breaking compatibility.  Just live with it.



-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to