Re: [sqlite] Question about the sqlite3_column_bytes

2012-09-15 Thread Clemens Ladisch
kjell.gunnars...@sungard.com wrote:
> sqlite3_column_bytes returns an "int"

Yes.

> that can contain values in the interval -32768 to +32767.

It is assumed that any platform SQLite runs on has as least 32 bits.

(And if you'd want to run SQLite on MS-DOS, the type of
sqlite3_column_bytes's return value would be the least of your problems.)



Regards,
Clemens
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Question about the sqlite3_column_bytes

2012-09-15 Thread kjell.gunnarsson
Hi,

sqlite3_column_bytes should be used to get info about the length of the 
Blob-data when extracting data from a table that contains a BLOB column.
sqlite3_column_bytes returns an "int"  that can contain values in the interval 
-32768 to +32767.

But what happens if it is more bytes in the BLOB than the "int" datatype can 
represent (i.e. 100) ?.
Is there another function that should be used then ?.

Regards
Kjell Gunnarsson, Sungard




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