Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible block pointer types sending 'void *(^)(FMDatabase *__strong)' in FMDatabaseQueue #657

Open
Stophface opened this issue Mar 30, 2018 · 1 comment

Comments

@Stophface
Copy link

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

@Stophface 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
@nethraUCS
Copy link

Did you resolve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants