On Wed, Jul 10, 2013 at 9:55 AM, Paolo Bolzoni <
paolo.bolzoni.br...@gmail.com> wrote:

> The subject pretty much says it all.
> I am curious to know what sqlite3 does when asking for the result value of
> a column passing a type that is too small.
>
> For example in my system int are 32 bits as result of a query
> I got a 10 billions: what happens using sqlite3_column_int to get
> that result?
>


The behavior is undefined.

That means it might change from time to time.  And it especially means that
you should not do that.  If your column result might be a 64-bit integer,
then use only sqlite3_column_int64() to get its value.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to