Skip to content

Commit

Permalink
Fix crash on delete all location
Browse files Browse the repository at this point in the history
There was a typo passing the arguments to the execute query call. The bracket was closed too soon
  • Loading branch information
acerbetti authored Jul 3, 2018
1 parent 0435a0b commit 7392e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BackgroundGeolocation/MAURSQLiteLocationDAO.m
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ - (BOOL) deleteAllLocations:(NSError * __autoreleasing *)outError
NSString *sql = @"UPDATE " @LC_TABLE_NAME @" SET " @LC_COLUMN_NAME_STATUS @" = ?";

[queue inDatabase:^(FMDatabase *database) {
if ([database executeUpdate:sql], [NSString stringWithFormat:@"%ld", MAURLocationDeleted]) {
if ([database executeUpdate:sql, [NSString stringWithFormat:@"%ld", MAURLocationDeleted]]) {
success = YES;
} else {
int errorCode = [database lastErrorCode];
Expand Down

0 comments on commit 7392e39

Please sign in to comment.