On Sun, Sep 7, 2014 at 8:08 PM, Stephen Chrzanowski <pontia...@gmail.com>
wrote:

> On Sun, Sep 7, 2014 at 1:02 PM, skywind mailing lists <
> mailingli...@skywind.eu> wrote:> type?! On iOS 64bit the size of int is 4
> bytes and the size of size_t is 8
>
> bytes. In this case the fourth parameter is actually not even able
> > (theoretically) to store the length of a blob or text variable correctly.
>

http://www.sqlite.org/c3ref/bind_blob.html

"In those routines that have a fourth argument, its value is the number of
bytes in the parameter. To be clear: the value is the number of *bytes* in
the value, not the number of characters. If the fourth parameter to
sqlite3_bind_text() or sqlite3_bind_text16() is negative, then the length
of the string is the number of bytes up to the first zero terminator."




i.e. changing them to size_t would change the semantics and break and and
all applications which rely on the current semantics (some of which are
mine).


See also:

http://www.sqlite.org/limits.html

which documents the 31-bit limit.


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to