diff options
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m index ebb03a71..d01dd4cd 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -445,11 +445,9 @@ if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"SET"] ) { [constraintDetails setObject:@"SET NULL" forKey:@"update"]; - nextOffs = 13; } else if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"NO"] ) { [constraintDetails setObject:@"NO ACTION" forKey:@"update"]; - nextOffs = 13; } else { [constraintDetails setObject:[parts objectAtIndex:nextOffs+1] forKey:@"update"]; @@ -460,11 +458,9 @@ if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"SET"] ) { [constraintDetails setObject:@"SET NULL" forKey:@"delete"]; - nextOffs = 13; } else if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"NO"] ) { [constraintDetails setObject:@"NO ACTION" forKey:@"delete"]; - nextOffs = 13; } else { [constraintDetails setObject:[parts objectAtIndex:nextOffs+1] forKey:@"delete"]; @@ -472,6 +468,7 @@ } } [constraints addObject:constraintDetails]; + [constraintDetails release]; } // primary key else if( [[parts objectAtIndex:0] hasPrefix:@"PRIMARY"] ) { |