Thanks for reply. Could you please elaborate ? For me, there is no way to know if the specified column index is invalid by using the column value returned by sqlite3_column_blob/text/int . Regards.
On Sun, Apr 12, 2015 at 11:50 AM, Stephan Beal <sgbeal at googlemail.com> wrote: > On Sun, Apr 12, 2015 at 11:48 AM, gwenn <gwenn.kahz at gmail.com> wrote: > >> Hello, >> Could you please tell me if sqlite3_errcode/sqlite3_errmsg should be >> called after each call to sqlite3_column_blob/text/int/... to check >> that the column index is valid ? >> > > Not needed - simply check the result code of your call to > sqlite3_column_xxx(). (Users should always check the result codes of their > sqlite3 API calls.) > > -- > ----- 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 at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users