Hi everyone,
I guess the best thing to do is to show the code what I'm doing at the result:
This works:
if (sqlite3_column_text(statement, 0)) {
[marker setObject:[NSNumber numberWithInt: sqlite3_column_int(statement, 0)] forKey:@"id"];
}
This always returns false for the if statement:
if (sqlite3_column_int(statement, 0)) {
[marker setObject:[NSNumber numberWithInt: sqlite3_column_int(statement, 0)] forKey:@"id"];
}
This returns an incorrect result for the column:
if (sqlite3_column_text(statement, 0)) {
[marker setObject:[NSNumber numberWithInt: sqlite3_column_text(statement, 0)] forKey:@"id"];
}
Any idea whats going on?