diff options
author | stuconnolly <stuart02@gmail.com> | 2012-09-28 09:28:14 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-09-28 09:28:14 +0000 |
commit | e056540dee95d0f38647edd72a065d9a2996760d (patch) | |
tree | bc1a9f7b07023a03726d4d3e5ee82deddedf125a | |
parent | d01fe26b1e1965d81c6971a48a6b7856aa821cbf (diff) | |
download | sequelpro-e056540dee95d0f38647edd72a065d9a2996760d.tar.gz sequelpro-e056540dee95d0f38647edd72a065d9a2996760d.tar.bz2 sequelpro-e056540dee95d0f38647edd72a065d9a2996760d.zip |
Add support for JSON data type added in PostgreSQL 9.2
-rw-r--r-- | Frameworks/PostgresKit/Source/PGPostgresTypeStringHandler.m | 2 | ||||
-rw-r--r-- | Frameworks/PostgresKit/Source/PGPostgresTypes.h | 3 |
2 files changed, 5 insertions, 0 deletions
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 |