aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableInfo.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-13 00:57:43 +0000
committerrowanbeentje <rowan@beent.je>2009-08-13 00:57:43 +0000
commit19d3956c14f63872981ab292e7498ac4505e1fae (patch)
tree98874e4ab50559fc360ea6874f6ee41c1f134f2d /Source/SPTableInfo.m
parent3946e0c6c1e26af2b65590a1f0f50ab25c1c3bfb (diff)
downloadsequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.tar.gz
sequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.tar.bz2
sequelpro-19d3956c14f63872981ab292e7498ac4505e1fae.zip
- Rework TableContent row count fetching, loading it in the correct locations, and correcting the logic for fetching the count of rows so that the query is not used where not necessary.
- Update the Table Info pane and tab with a new row count if one is known - this addresses Issue #141 - This reverts r1090, and so needs to be discussed with stuart02 - the rest of the row logic changes may have fixed the 'larger issue' described there?
Diffstat (limited to 'Source/SPTableInfo.m')
-rw-r--r--Source/SPTableInfo.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableInfo.m b/Source/SPTableInfo.m
index 2cb14bf2..07e6d895 100644
--- a/Source/SPTableInfo.m
+++ b/Source/SPTableInfo.m
@@ -128,7 +128,7 @@
// Check for 'Rows' == NULL - information_schema database doesn't report row count for it's tables
if (![[tableStatus objectForKey:@"Rows"] isNSNull]) {
- [info addObject:[NSString stringWithFormat:([[tableStatus objectForKey:@"Engine"] isEqualToString:@"MyISAM"]) ? @"rows: %@" : @"rows: ~%@", [tableStatus objectForKey:@"Rows"]]];
+ [info addObject:[NSString stringWithFormat:[[tableStatus objectForKey:@"RowsCountAccurate"] boolValue] ? @"rows: %@" : @"rows: ~%@", [tableStatus objectForKey:@"Rows"]]];
}
[info addObject:[NSString stringWithFormat:@"size: %@", [NSString stringForByteSize:[[tableStatus objectForKey:@"Data_length"] intValue]]]];