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 ?
I am confused by: > http://sqlite.org/rescode.html#range > The SQLITE_RANGE error indices that the parameter number argument to one of > the sqlite3_bind routines is out of range. Here , there is no mention to sqlite3_column_blob. > http://sqlite.org/c3ref/column_blob.html > if the column index is out of range, the result is undefined. Here, there is no mention to SQLITE_RANGE. > http://www.sqlite.org/cgi/src/artifact/583d56b129dd27f1 > static Mem *columnMem(sqlite3_stmt *pStmt, int i){ > ... > sqlite3Error(pVm->db, SQLITE_RANGE); > ... > } > http://www.sqlite.org/cgi/src/artifact/40e333960d53f7d5 > const char *sqlite3ErrStr(int rc){ > ... > /* SQLITE_RANGE */ "bind or column index out of range", > ... > } Here, there is a mention to "column index out of range" Regards.