On 6 April 2016 at 12:16, Kumar Suraj <surajnitk at gmail.com> wrote:
> Hi
. 
. 
. 
> 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;
>
>         }

Are you calling sqlite3_prepare_v2 before your call to sqlite3_bind_int?

Regards,
Simon

Reply via email to