On 10/1/2017 1:56 PM, Bart Smissaert wrote:
This is in the documentation of sqlite3_errcode():

If the most recent API call was successful, then the return value from
sqlite3_errcode() is undefined.

I can see that if there is no error then then return value of
sqlite3_errcode() can be SQLITE_ROW (100) or SQLITE_DONE (101). So, to
check if there is an error (other than looking at all the
return values)

There is no other way to check if there is an error than by looking at all the 
return values. That's what the documentation is telling you: the value returned 
by sqlite3_errcode() is only meaningful if the return value of the most recent 
API call indicated that that call has failed.
--
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to