diff options
author | stuconnolly <stuart02@gmail.com> | 2012-09-24 12:58:47 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-09-24 12:58:47 +0000 |
commit | 21e842e7e8edbe9f2ec036b93648bd7459f38af6 (patch) | |
tree | f90be579ef84b304e92d5e1432026d89f34b593d /Frameworks/PostgresKit/Source/FLXPostgresResult.m | |
parent | 4e12b294d3fc6eb32c0050047d285fff29320607 (diff) | |
download | sequelpro-21e842e7e8edbe9f2ec036b93648bd7459f38af6.tar.gz sequelpro-21e842e7e8edbe9f2ec036b93648bd7459f38af6.tar.bz2 sequelpro-21e842e7e8edbe9f2ec036b93648bd7459f38af6.zip |
Should be returning an NSNull instance so we don't screw up our array.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresResult.m')
-rw-r--r-- | Frameworks/PostgresKit/Source/FLXPostgresResult.m | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |