aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXPostgresResult.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-10 11:09:56 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-10 11:09:56 +0000
commit7dd33a85a537c410cd3b31d661731b1f8d1e7d59 (patch)
tree2881a6fc037767140f0d0a0eaed5000a58c98c09 /Frameworks/PostgresKit/Source/FLXPostgresResult.m
parent12ad4fae862bc157cd133b42ed8f204bc273058a (diff)
downloadsequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.tar.gz
sequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.tar.bz2
sequelpro-7dd33a85a537c410cd3b31d661731b1f8d1e7d59.zip
Rework type handling; reducing the number of paremeters being passed around as well as libpq calls.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresResult.m')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresResult.m13
1 files changed, 11 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresResult.m b/Frameworks/PostgresKit/Source/FLXPostgresResult.m
index 0d9656d0..9fd44d8c 100644
--- a/Frameworks/PostgresKit/Source/FLXPostgresResult.m
+++ b/Frameworks/PostgresKit/Source/FLXPostgresResult.m
@@ -215,9 +215,18 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError";
if (!bytes || !length) return nil;
return [NSData dataWithBytes:bytes length:length];
- }
+ }
+
+ [handler setRow:row];
+ [handler setType:type];
+ [handler setColumn:column];
+ [handler setResult:_result];
+
+ id object = [handler objectFromResult];
+
+ [handler setResult:nil];
- return [handler objectFromResult:_result atRow:row column:column];
+ return object;
}
/**