From f54791648b44925321f2d9c631d9782574fecf51 Mon Sep 17 00:00:00 2001 From: mtvee Date: Thu, 11 Jun 2009 00:20:00 +0000 Subject: updated dot generator to handle multi-col fk's with a different arrow type and views as a different header color --- Source/SPTableData.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/SPTableData.m') 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"]; -- cgit v1.2.3