From 38adbb6ec450553074432db1dc0c4907dc064e8e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 9 Sep 2012 01:53:22 +0000 Subject: Additional type support. --- Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m | 3 ++- Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m | 2 ++ Frameworks/PostgresKit/Source/FLXPostgresTypes.h | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'Frameworks/PostgresKit/Source') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m index 5ea07047..d9395398 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m @@ -29,7 +29,8 @@ static FLXPostgresOid FLXPostgresTypeNumberTypes[] = FLXPostgresOidInt4, FLXPostgresOidFloat4, FLXPostgresOidFloat8, - FLXPostgresOidBool, + FLXPostgresOidBool, + FLXPostgresOidOid, 0 }; diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m index fb72346b..2b1d4330 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeStringHandler.m @@ -30,6 +30,8 @@ static FLXPostgresOid FLXPostgresTypeStringTypes[] = FLXPostgresOidName, FLXPostgresOidNumeric, FLXPostgresOidVarchar, + FLXPostgresOidXML, + FLXPostgresOidUUID, FLXPostgresOidUnknown, 0 }; diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypes.h b/Frameworks/PostgresKit/Source/FLXPostgresTypes.h index 3216ad98..5c09e5d8 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypes.h +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypes.h @@ -31,7 +31,7 @@ enum { // BOOL FLXPostgresOidBool = 16, // NumberHandler => NSNumber - FLXPostgresOidData = 17, // Currently not supported + FLXPostgresOidByteData = 17, // Currently not supported // Text FLXPostgresOidName = 19, // StringHandler => NSString @@ -45,10 +45,10 @@ enum FLXPostgresOidText = 25, // StringHandler => NSString // OID - FLXPostgresOidOid = 26, // Currently not supported + FLXPostgresOidOid = 26, // NumberHandler => NSNumber // XML - FLXPostgresOidXML = 142, // Currently not supported + FLXPostgresOidXML = 142, // StringHandler => NSString // Geometric FLXPostgresOidPoint = 600, // Currently not supported @@ -76,7 +76,6 @@ enum // Network FLXPostgresOidMacAddr = 829, // Currently not supported FLXPostgresOidIPAddr = 869, // Currently not supported - FLXPostgresOidNetAddr = 869, // Currently not supported // Arrays FLXPostgresOidArrayBool = 1000, // Currently not supported @@ -111,5 +110,6 @@ enum // Numeric FLXPostgresOidNumeric = 1700, // StringHandler => NSString - FLXPostgresOidMax = 1700 // Currently not supported + + FLXPostgresOidUUID = 2950 // StringHandler => NSString }; -- cgit v1.2.3