mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Minor code improvement in SQLSource.m
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user