Fix typo in cache_size PRAGMA
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -92,7 +92,7 @@ | @@ -92,7 +92,7 @@ | ||
92 | [_queue inDatabase:^(FMDatabase *db) { | 92 | [_queue inDatabase:^(FMDatabase *db) { |
93 | [[db executeQuery:@"PRAGMA synchronous=OFF"] close]; | 93 | [[db executeQuery:@"PRAGMA synchronous=OFF"] close]; |
94 | [[db executeQuery:@"PRAGMA journal_mode=OFF"] close]; | 94 | [[db executeQuery:@"PRAGMA journal_mode=OFF"] close]; |
95 | - [[db executeQuery:@"PRAGMA cache-size=100"] close]; | 95 | + [[db executeQuery:@"PRAGMA cache_size=100"] close]; |
96 | [[db executeQuery:@"PRAGMA count_changes=OFF"] close]; | 96 | [[db executeQuery:@"PRAGMA count_changes=OFF"] close]; |
97 | [db executeUpdate:@"CREATE TABLE IF NOT EXISTS ZCACHE (tile_hash INTEGER NOT NULL, cache_key VARCHAR(25) NOT NULL, last_used DOUBLE NOT NULL, data BLOB NOT NULL)"]; | 97 | [db executeUpdate:@"CREATE TABLE IF NOT EXISTS ZCACHE (tile_hash INTEGER NOT NULL, cache_key VARCHAR(25) NOT NULL, last_used DOUBLE NOT NULL, data BLOB NOT NULL)"]; |
98 | [db executeUpdate:@"CREATE UNIQUE INDEX IF NOT EXISTS main_index ON ZCACHE(tile_hash, cache_key)"]; | 98 | [db executeUpdate:@"CREATE UNIQUE INDEX IF NOT EXISTS main_index ON ZCACHE(tile_hash, cache_key)"]; |
-
Please register or login to post a comment