hi simon i am not using step 4 in my program...after step 1 to 3 ,db file create in external sd card . then i am trying to update the colum value of table using upadte command with where clause but its failing due to below if condition as i mentioned in the sqlite3_prepare-->lockBtree
if(memcmp.......) page1_init fail cheers kritesh On Oct 24, 2012 2:12 AM, "Simon Slavin" <slav...@bigfraud.org> wrote: > > On 23 Oct 2012, at 5:58pm, kritesh tripathi <tripathi.krit...@gmail.com> > wrote: > > > 4- Confirm by opening the .db file in sqlite browser tht dtabase table > > insert the records > > > > 5- Again Open the the database > > 6- Whenever Executing Sqlite_Exec to Update the colum value of > database > > table . > > > > .Getting the Errror in Sqlite3_Prepare()--->lockBtree(BtShared *pBt)--> > > > > if( memcmp(page1, zMagicHeader, 16)!=0 ){ > > goto page1_init_failed; > > > > Everytimes above if condition True hence page1_init_failed and returns > > > > rc = SQLITE_NOTADB; > > > Try it without step 4. Do you still have the problem ? > > Try it with steps 3, 4, or 5. Do you still have the problem ? > > What SQL command results in the SQLITE_NOTADB ? > > Simon. > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users