Yes , I always do this check before i proceed next step .  if(rc != SQLITE_OK){ 
}

I just crash my database with 1 thread keep reading , another thread keep 
inserting . Here is how i open the DB connection . 

rc = sqlite3_open_v2(DEFAULT_FAILTS_DB, 
&db,SQLITE_OPEN_READWRITE|SQLITE_OPEN_SHAREDCACHE|SQLITE_OPEN_FULLMUTEX,NULL);
 

    On Monday, June 27, 2016 11:34 PM, Simon Slavin <slav...@bigfraud.org> 
wrote:
 

 Sorry, that should read

> All API calls should return SQLITE_OK except for sqlite_step() which can 
> return SQLITE_ROW or SQLITE_DONE too.  Any other code indicates a fault and 
> your program

... should crash ...

> when it sees them, before more harm is done.

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


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

Reply via email to