aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-08 20:41:11 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-08 20:41:11 +0000
commit4a950f357fb29640b2732ca34c80f81c0b23fbe6 (patch)
tree8dab179aa98c223a9791889846032c0e960636b4 /Source/SPTableRelations.m
parent2baa01621f83df3c81e6b6ed2310d483962dcf48 (diff)
downloadsequelpro-4a950f357fb29640b2732ca34c80f81c0b23fbe6.tar.gz
sequelpro-4a950f357fb29640b2732ca34c80f81c0b23fbe6.tar.bz2
sequelpro-4a950f357fb29640b2732ca34c80f81c0b23fbe6.zip
Bring outline view branch up to date with trunk (r3227:r3233).
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index b7a4bde6..fb833d94 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -176,7 +176,7 @@
[result dataSeek:0];
- for (NSInteger i = 0; i < [result numOfRows]; i++)
+ for (NSUInteger i = 0; i < [result numOfRows]; i++)
{
[refTablePopUpButton addItemWithTitle:[[result fetchRowAsArray] objectAtIndex:0]];
}
@@ -358,16 +358,16 @@
[headings release];
// Get the relation data
- for (NSDictionary *relation in relationData)
+ for (NSDictionary *eachRelation in relationData)
{
NSMutableArray *temp = [[NSMutableArray alloc] init];
- [temp addObject:[relation objectForKey:@"name"]];
- [temp addObject:[relation objectForKey:@"columns"]];
- [temp addObject:[relation objectForKey:@"fk_table"]];
- [temp addObject:[relation objectForKey:@"fk_columns"]];
- [temp addObject:([relation objectForKey:@"on_update"]) ? [relation objectForKey:@"on_update"] : @""];
- [temp addObject:([relation objectForKey:@"on_delete"]) ? [relation objectForKey:@"on_delete"] : @""];
+ [temp addObject:[eachRelation objectForKey:@"name"]];
+ [temp addObject:[eachRelation objectForKey:@"columns"]];
+ [temp addObject:[eachRelation objectForKey:@"fk_table"]];
+ [temp addObject:[eachRelation objectForKey:@"fk_columns"]];
+ [temp addObject:([eachRelation objectForKey:@"on_update"]) ? [eachRelation objectForKey:@"on_update"] : @""];
+ [temp addObject:([eachRelation objectForKey:@"on_delete"]) ? [eachRelation objectForKey:@"on_delete"] : @""];
[data addObject:temp];