aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-02 01:52:38 +0000
committerrowanbeentje <rowan@beent.je>2010-01-02 01:52:38 +0000
commite42f000e98e9ff33a91a86a3e2a0cf04c6778102 (patch)
treeab52b693e5fe7122e10536b626f18b1a48399794 /Source/SPPreferenceController.m
parent7753ee58924ee3d8da9177a1c318a28dd0bcd6d9 (diff)
downloadsequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.tar.gz
sequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.tar.bz2
sequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.zip
- With the improved row count support and behaviour, replace the old "Fetch correct row count" preference with a new Table row counts query level (never, only for small tables, always), defaulting to only for small tables - boundary currently set to 5MB. This addresses Issue #500
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index 5d2f7575..1a2fdf41 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -166,7 +166,7 @@
@"reloadAfterEditing", SPReloadAfterEditingRow,
@"reloadAfterRemoving", SPReloadAfterRemovingRow,
@"dontShowBlob", SPLoadBlobsAsNeeded,
- @"fetchRowCount", SPFetchCorrectRowCount,
+ @"fetchRowCount", @"FetchCorrectRowCount",
@"limitRows", SPLimitResults,
@"limitRowsValue", SPLimitResultsValue,
@"nullValue", SPNullValue,
@@ -288,6 +288,11 @@
[prefs setObject:queryFavoritesArray forKey:SPQueryFavorites];
}
+ // For versions prior to r1636 (<0.9.8), remove the old "Fetch correct row count" pref
+ if (recordedVersionNumber < 1636 && [prefs objectForKey:@"FetchCorrectRowCount"]) {
+ [prefs removeObjectForKey:@"FetchCorrectRowCount"];
+ }
+
// Update the prefs revision
[prefs setObject:[NSNumber numberWithInt:currentVersionNumber] forKey:SPLastUsedVersion];
}