ios - FMDB Infinite loop due to sqlite3_step and while (retry) -


i have fmdb executeupdate cause infinite loop :

fmdatabase *db = [fmdatabase databasewithpath:[cddbmanager getdatabasepath]];  [db closeopenresultsets]; [db close]; nslog(@"successfully pass closes"); [db open]; nslog(@"successfully pass open"); [db settraceexecution:yes]; bool success = [db executeupdate:@"insert or replace player (id, ..., is_user) values (?, ..., ?)",                 [nsnumber numberwithint:self.player_id],                 ...                 [nsnumber numberwithint:1]];  nslog(@"end update"); [db close]; 

i call method in 2 different vcs , in 1 work ... in other have infinite loop (i print retry in "do{} while()" of fmdb), don't see "end update" ... see, try close result sets , and db ...

anyone can see i've failed ?

all suggestions welcome.

i think had same problem. opening connection every method wanted call database. fixed opening connection on init.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -