From e056540dee95d0f38647edd72a065d9a2996760d Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 28 Sep 2012 09:28:14 +0000 Subject: Add support for JSON data type added in PostgreSQL 9.2 --- Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m | 2 ++ Frameworks/PostgresKit/Source/PGPostgresTypes.h | 3 +++ 2 files changed, 5 insertions(+) (limited to 'Frameworks') diff --git a/Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m b/Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m index f638eb4e..e1731b38 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m +++ b/Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m @@ -31,6 +31,7 @@ static PGPostgresOid PGPostgresTypeStringTypes[] = PGPostgresOidChar, PGPostgresOidName, PGPostgresOidVarChar, + PGPostgresOidJSON, PGPostgresOidXML, PGPostgresOidUUID, PGPostgresOidBit, @@ -86,6 +87,7 @@ static PGPostgresOid PGPostgresTypeStringTypes[] = case PGPostgresOidName: case PGPostgresOidVarChar: case PGPostgresOidXML: + case PGPostgresOidJSON: case PGPostgresOidUUID: case PGPostgresOidBit: case PGPostgresOidVarBit: diff --git a/Frameworks/PostgresKit/Source/PGPostgresTypes.h b/Frameworks/PostgresKit/Source/PGPostgresTypes.h index c5812c4e..fc97ac23 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresTypes.h +++ b/Frameworks/PostgresKit/Source/PGPostgresTypes.h @@ -46,6 +46,9 @@ enum // OID PGPostgresOidOid = 26, // NumberHandler => NSNumber + // JSON + PGPostgresOidJSON = 114, // StringHandler => NSString + // XML PGPostgresOidXML = 142, // StringHandler => NSString -- cgit v1.2.3