objective c - sqlite3_prepare_v2 failing -



objective c - sqlite3_prepare_v2 failing -

could explain me why if statement not triggering? database opens fine, it's can't retrieve values database. also, table name right well.

if (sqlite3_prepare_v2(database, [query utf8string], -1, &statement, nil)== sqlite_ok) { while (sqlite3_step(statement) == sqlite_row) { int uniqueid = sqlite3_column_int(statement, 0); char *namechars = (char *) sqlite3_column_text(statement, 1); char *addresschars = (char *) sqlite3_column_text(statement, 2); nsstring *name = [[nsstring alloc] initwithutf8string:namechars]; nsstring *address = [[nsstring alloc] initwithutf8string:addresschars]; personinfo *info = [[personinfo alloc] initwithuniqueid:uniqueid name:name address:address]; [returnarray addobject:info]; } sqlite3_finalize(statement); } homecoming returnarray; }

objective-c sqlite3

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -