From 21e842e7e8edbe9f2ec036b93648bd7459f38af6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 24 Sep 2012 12:58:47 +0000 Subject: Should be returning an NSNull instance so we don't screw up our array. --- Frameworks/PostgresKit/Source/FLXPostgresResult.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/PostgresKit/Source/FLXPostgresResult.m b/Frameworks/PostgresKit/Source/FLXPostgresResult.m index 02375650..f2844faa 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresResult.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresResult.m @@ -234,7 +234,7 @@ */ - (id)_objectForRow:(NSUInteger)row column:(NSUInteger)column { - if (row >= _numberOfRows || column >= _numberOfFields) return nil; + if (row >= _numberOfRows || column >= _numberOfFields) return [NSNull null]; // Check for null if (PQgetisnull(_result, (int)row, (int)column)) return [NSNull null]; -- cgit v1.2.3