You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use FMDatabaseQueue.
When I implement it like described in the documentation
FMDatabaseQueue *queue = [FMDatabaseQueue databaseQueueWithPath:aPath];
Then use it like so:
[queue inDatabase:^(FMDatabase *db) {
[db executeUpdate:@"INSERT INTO myTable VALUES (?)", @1];
[db executeUpdate:@"INSERT INTO myTable VALUES (?)", @2];
[db executeUpdate:@"INSERT INTO myTable VALUES (?)", @3];
FMResultSet *rs = [db executeQuery:@"select * from foo"];
while ([rs next]) {
…
}
}];
I get this error:
Incompatible block pointer types sending 'void *(^)(FMDatabase *__strong)'
to parameter of type 'void (^ _Nonnull)(FMDatabase * _Nonnull __strong)'
XCode 9.2
The text was updated successfully, but these errors were encountered:
Stophface
changed the title
Incompatible block pointer types sending 'void *(^)(FMDatabase *__strong)'
Incompatible block pointer types sending 'void *(^)(FMDatabase *__strong)' in FMDatabaseQueue
Mar 30, 2018
I am trying to use
FMDatabaseQueue
.When I implement it like described in the documentation
I get this error:
XCode 9.2
The text was updated successfully, but these errors were encountered: