diff options
author | stuconnolly <stuart02@gmail.com> | 2012-09-06 08:45:51 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-09-06 08:45:51 +0000 |
commit | 255db553f9ebf80f712b6002ea528f30252d30d4 (patch) | |
tree | 863eee575604fe413adf6ed86dd87d1a472d7c2f /Frameworks/PostgresKit/Source | |
parent | 5f61f95ab4c1c87517516c5f991799d46abf5662 (diff) | |
download | sequelpro-255db553f9ebf80f712b6002ea528f30252d30d4.tar.gz sequelpro-255db553f9ebf80f712b6002ea528f30252d30d4.tar.bz2 sequelpro-255db553f9ebf80f712b6002ea528f30252d30d4.zip |
PostgresKit: Expose number handling methods.
Diffstat (limited to 'Frameworks/PostgresKit/Source')
-rw-r--r-- | Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.h | 4 | ||||
-rw-r--r-- | Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.h b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.h index a3305e19..375251d4 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.h +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.h @@ -24,5 +24,9 @@ @interface FLXPostgresTypeNumberHandler : FLXPostgresTypeHandler <FLXPostgresTypeHandlerProtocol> +- (Float64)float64FromBytes:(const void *)bytes; + +- (NSNumber *)integerObjectFromBytes:(const void *)bytes length:(NSUInteger)length; + @end diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m index 0c75e282..b31b4a34 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m @@ -283,9 +283,9 @@ static FLXPostgresOid FLXPostgresTypeNumberTypes[] = case 'd': // Double (*type) = FLXPostgresOidFloat8; return [self remoteDataFromFloat64:[(NSNumber *)object doubleValue]]; + default: + return nil; } - - return nil; } - (id)objectFromRemoteData:(const void *)bytes length:(NSUInteger)length type:(FLXPostgresOid)type |