aboutsummaryrefslogtreecommitdiffstats
path: root/SPTableInfo.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-12-09 00:08:35 +0000
committerstuconnolly <stuart02@gmail.com>2008-12-09 00:08:35 +0000
commita6c17dfdaa46f413ee8aee6d39904eb89454f813 (patch)
tree4dc1b40656543e2e40ebc7ed33acec2203ef98a5 /SPTableInfo.m
parentd7892ee21760a09fcedaa46e8a2f544146bd9a29 (diff)
downloadsequelpro-a6c17dfdaa46f413ee8aee6d39904eb89454f813.tar.gz
sequelpro-a6c17dfdaa46f413ee8aee6d39904eb89454f813.tar.bz2
sequelpro-a6c17dfdaa46f413ee8aee6d39904eb89454f813.zip
- Partial fix for issue #109 by making the option to 'Autodetect' character encoding specific to each table
- Added the selected table's character encoding to the table information pane and removed the table's name
Diffstat (limited to 'SPTableInfo.m')
-rw-r--r--SPTableInfo.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/SPTableInfo.m b/SPTableInfo.m
index 5e777429..5f395c59 100644
--- a/SPTableInfo.m
+++ b/SPTableInfo.m
@@ -114,9 +114,6 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn
// Process result
theRow = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
- // Add the table name to the infoTable
- [info addObject:[NSString stringWithFormat:@"name: %@", [tableListInstance table]]];
-
// Check for "Create_time" == NULL
if (![[theRow objectForKey:@"Create_time"] isNSNull]) {
// Setup our data formatter
@@ -135,6 +132,7 @@ objectValueForTableColumn:(NSTableColumn *)aTableColumn
[info addObject:[NSString stringWithFormat:@"rows: %@", [theRow objectForKey:@"Rows"]]];
[info addObject:[NSString stringWithFormat:@"size: %@", [self sizeFromBytes:[[theRow objectForKey:@"Data_length"] intValue]]]];
+ [info addObject:[NSString stringWithFormat:@"encoding: %@", [[[theRow objectForKey:@"Collation"] componentsSeparatedByString:@"_"] objectAtIndex:0]]];
[info addObject:[NSString stringWithFormat:@"auto_increment: %@", [theRow objectForKey:@"Auto_increment"]]];
// Notify that we've finished performing the query