aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2013-04-21 21:05:56 +0000
committerdmoagx <post@wickenrode.com>2013-04-21 21:05:56 +0000
commit974a17c6403e75eb23eef4a270ff0d70b37c91de (patch)
tree1c72d942e561659508c67210d926f0e94630a900 /Source/SPTableContent.m
parent758789b3bba80f91182730841cb54ba0f3c86de4 (diff)
downloadsequelpro-974a17c6403e75eb23eef4a270ff0d70b37c91de.tar.gz
sequelpro-974a17c6403e75eb23eef4a270ff0d70b37c91de.tar.bz2
sequelpro-974a17c6403e75eb23eef4a270ff0d70b37c91de.zip
* Composite Foreign Keys will now show all columns in Relation view (workaround)
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 85241ce2..7f9c172e 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -514,7 +514,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
for (NSDictionary *constraint in constraints)
{
NSString *firstColumn = [[constraint objectForKey:@"columns"] objectAtIndex:0];
- NSString *firstRefColumn = [[[constraint objectForKey:@"ref_columns"] componentsSeparatedByString:@","] objectAtIndex:0];
+ NSString *firstRefColumn = [[constraint objectForKey:@"ref_columns"] objectAtIndex:0];
NSUInteger columnIndex = [columnNames indexOfObject:firstColumn];
if (columnIndex != NSNotFound && ![[dataColumns objectAtIndex:columnIndex] objectForKey:@"foreignkeyreference"]) {