aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-06-11 00:20:00 +0000
committermtvee <emptyvee@gmail.com>2009-06-11 00:20:00 +0000
commitf54791648b44925321f2d9c631d9782574fecf51 (patch)
treef89d65463cdd9e651206dd2ade9d97d236c9206f /Source/SPTableData.m
parent910d3dcf2fcea97d445b94ba902f8a0b8279916e (diff)
downloadsequelpro-f54791648b44925321f2d9c631d9782574fecf51.tar.gz
sequelpro-f54791648b44925321f2d9c631d9782574fecf51.tar.bz2
sequelpro-f54791648b44925321f2d9c631d9782574fecf51.zip
updated dot generator to handle multi-col fk's with a different arrow type and views as a different header color
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index a5e29a9d..f2e0c77e 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -317,6 +317,7 @@
// Retrieve the table syntax string
NSArray *syntaxResult = [theResult fetchRowAsArray];
+ NSArray *resultFieldNames = [theResult fetchFieldNames];
if ([[syntaxResult objectAtIndex:1] isKindOfClass:[NSData class]]) {
tableCreateSyntax = [[NSString alloc] initWithData:[syntaxResult objectAtIndex:1] encoding:[mySQLConnection encoding]];
@@ -520,6 +521,8 @@
[fieldParser release];
tableData = [NSMutableDictionary dictionary];
+ // this will be 'Table' or 'View'
+ [tableData setObject:[resultFieldNames objectAtIndex:0] forKey:@"type"];
[tableData setObject:[NSString stringWithString:encodingString] forKey:@"encoding"];
[tableData setObject:[NSArray arrayWithArray:tableColumns] forKey:@"columns"];
[tableData setObject:[NSArray arrayWithArray:constraints] forKey:@"constraints"];