diff options
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r-- | Source/SPTableRelations.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m index d0ebb11b..29719f0b 100644 --- a/Source/SPTableRelations.m +++ b/Source/SPTableRelations.m @@ -455,7 +455,7 @@ { [relationData addObject:[NSDictionary dictionaryWithObjectsAndKeys: [constraint objectForKey:@"name"], @"name", - [constraint objectForKey:@"columns"], @"columns", + [[constraint objectForKey:@"columns"] objectAtIndex:0], @"columns", [constraint objectForKey:@"ref_table"], @"fk_table", [constraint objectForKey:@"ref_columns"], @"fk_columns", [constraint objectForKey:@"update"], @"on_update", |