My SQLite field is a numeric type (int). When i try to extract it into my application like this:
int id_quiz= (NSInteger) sqlite3_column_text(statement, 0);
i got a huge value like 129600224 which is not the correct one (and it changes every time i run the app).
However, in the same table, i got string value from other fields just fine:
NSString *question = [[NSString alloc]
initWithUTF8String:
(const char *) sqlite3_column_text(
statement, 1)];
The question is, how can i get a numeric value from SQLite? Thanx in advance.