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
When I use [db executeUpdate:@"PRAGMA journal_mode=OFF"]; the app crashes, in FMDatabase.m:
Assertion failed: (rc!=SQLITE_ROW), function -[FMDatabase executeUpdate:error:withArgumentsInArray:orVAList:], file /Users/trasch/Projects/route-me/MapView/Map/FMDB/FMDatabase.m, line 744.
Using executeQuery, it works:
[db executeQuery:@"PRAGMA journal_mode=OFF"];
(at least, it doesn't crash...)
The text was updated successfully, but these errors were encountered:
This is because setting pragmas are considered a query by sqlite- and executeUpdate: doesn't like it when it's handed one. I just committed a fix in a branch for this (it'll throw an exception with a reason) so it should make more sense in the future.
When I use [db executeUpdate:@"PRAGMA journal_mode=OFF"]; the app crashes, in FMDatabase.m:
Assertion failed: (rc!=SQLITE_ROW), function -[FMDatabase executeUpdate:error:withArgumentsInArray:orVAList:], file /Users/trasch/Projects/route-me/MapView/Map/FMDB/FMDatabase.m, line 744.
Using executeQuery, it works:
[db executeQuery:@"PRAGMA journal_mode=OFF"];
(at least, it doesn't crash...)
The text was updated successfully, but these errors were encountered: