The db is opened successfully, but the performQuery's withBlock is not executed for some reason.
It seems the issue happens when a query related error occurs.
[[AFSQLManager sharedManager]openLocalDatabaseWithName:@"testdb.sqlite" andStatusBlock:^(BOOL success, NSError *error) {
[[AFSQLManager sharedManager]performQuery:
@"SELECT 1 FROM user LIMIT 1;" withBlock:^(NSArray *row, NSError *error, BOOL finished) {
NSLog(@"TABLE CHECK");
}];
}];
The db is opened successfully, but the
performQuery'swithBlockis not executed for some reason.It seems the issue happens when a query related error occurs.