Hi I am getting following error in this piece of code.. Any idea what could be wrong ?
*(25) SQLITE_RANGE* The SQLITE_RANGE error indices that the parameter number argument to one of the sqlite3_bind <https://www.sqlite.org/c3ref/bind_blob.html> routines or the column number in one of the sqlite3_column <https://www.sqlite.org/c3ref/column_blob.html>routines is out of range. Here is table definition and insert statement which is causing this #define CREATE_TABLE_DNINDEX "CREATE TABLE IF NOT EXISTS TBL (dn BLOB, pclassid INTEGER, pkey INTEGER, kindex INTEGER PRIMARY KEY ASC)" #define INSERT_DN "INSERT INTO TBL (dn,pclassid,pkey) VALUES (?,?,?);" rv = sqlite3_bind_int(newStmt, 2 , aInClassId); if (rv != SQLITE_OK) { fprintf(stderr, "Error Insert : sqlite3_bind_int, Error code : %d\n", rv); sqlite3_finalize(newStmt); return rv; }