aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-07-21 23:36:31 +0000
committerstuconnolly <stuart02@gmail.com>2009-07-21 23:36:31 +0000
commit69a1f6a02d8aee011f47507d44d90b35c5b5aece (patch)
tree5cd9f7efa8efb4b3aeca36e6cb00d7280b70bc50 /Source
parent40dc17254dc86699d0c4e9f9eea235c5a7f5f6b9 (diff)
downloadsequelpro-69a1f6a02d8aee011f47507d44d90b35c5b5aece.tar.gz
sequelpro-69a1f6a02d8aee011f47507d44d90b35c5b5aece.tar.bz2
sequelpro-69a1f6a02d8aee011f47507d44d90b35c5b5aece.zip
Disable updating the number of rows in the selected table in the table data cache within getNumberOfRows after the discovery of much larger issue.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableData.m2
-rw-r--r--Source/TableContent.m6
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index f62daabd..007dd201 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -199,7 +199,7 @@
* via other means and are subsequently more accurate than the value currently set.
*/
- (void)setStatusValue:(NSString *)value forKey:(NSString *)key
-{
+{
[status setValue:value forKey:key];
}
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 5e0def75..263b48dd 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1668,15 +1668,15 @@
* Queries the number from MySQL if enabled in prefs and result is limited, otherwise just return the fullResult count.
*/
- (int)getNumberOfRows
-{
+{
if ([prefs boolForKey:@"LimitResults"] && [prefs boolForKey:@"FetchCorrectRowCount"]) {
numRows = [self fetchNumberOfRows];
} else {
numRows = [fullResult count];
}
-
+
// Update table data cache with the more accurate row count
- [tableDataInstance setStatusValue:[NSString stringWithFormat:@"%d", numRows] forKey:@"Rows"];
+ //[tableDataInstance setStatusValue:[NSString stringWithFormat:@"%d", numRows] forKey:@"Rows"];
return numRows;
}