aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m
index 68c9a45e..eeb346fa 100644
--- a/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m
+++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m
@@ -77,7 +77,7 @@ static FLXPostgresOid FLXPostgresTypeStringTypes[] =
- (id)objectFromResult
{
- if (!_result || !_type || !_row || !_column) return [NSNull null];
+ if (!_result || !_type) return [NSNull null];
switch (_type)
{
@@ -113,7 +113,7 @@ static FLXPostgresOid FLXPostgresTypeStringTypes[] =
{
const void *bytes = PQgetvalue(_result, (int)_row, (int)_column);
NSUInteger length = PQgetlength(_result, (int)_row, (int)_column);
-
+
if (!bytes || !length) return [NSNull null];
return [[[NSString alloc] initWithBytes:bytes length:length encoding:[_connection stringEncoding]] autorelease];