Minor code improvement in SQLSource.m

This commit is contained in:
Francis Lachapelle
2018-07-06 12:40:43 -04:00
parent f23b97fa28
commit c4c1de771c
+5 -4
View File
@@ -874,16 +874,17 @@
if (!ex)
{
NSDictionary *row;
NSMutableDictionary *mutableRow;
NSArray *attrs;
attrs = [channel describeResults: NO];
while ((row = [channel fetchAttributes: attrs withZone: NULL]))
{
row = [row mutableCopy];
[(NSMutableDictionary *) row setObject: self forKey: @"source"];
[results addObject: row];
[row release];
mutableRow = [row mutableCopy];
[mutableRow setObject: self forKey: @"source"];
[results addObject: mutableRow];
[mutableRow release];
}
}
else