diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-13 00:57:43 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-13 00:57:43 +0000 |
commit | 19d3956c14f63872981ab292e7498ac4505e1fae (patch) | |
tree | 98874e4ab50559fc360ea6874f6ee41c1f134f2d /Source/SPExtendedTableInfo.m | |
parent | 3946e0c6c1e26af2b65590a1f0f50ab25c1c3bfb (diff) | |
download | sequelpro-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/SPExtendedTableInfo.m')
-rw-r--r-- | Source/SPExtendedTableInfo.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m index 11a0188e..0ac716cb 100644 --- a/Source/SPExtendedTableInfo.m +++ b/Source/SPExtendedTableInfo.m @@ -375,8 +375,8 @@ value = [dateFormatter stringFromDate:[NSDate dateWithNaturalLanguageString:value]]; } - // Prefix number of rows with '~' if this is not a MyISAM table. Only MyISAM tables report the exact row count. - else if (([key isEqualToString:@"Rows"]) && (![[infoDict objectForKey:@"Engine"] isEqualToString:@"MyISAM"])) { + // Prefix number of rows with '~' if it is not an accurate count + else if ([key isEqualToString:@"Rows"] && ![[infoDict objectForKey:@"RowsCountAccurate"] boolValue]) { value = [@"~" stringByAppendingString:value]; } } |