Sfoglia il codice sorgente

JSONB support for Postgres

Ondrej Pokorny 2 giorni fa
parent
commit
b81d3bf1be
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      packages/fcl-db/src/sqldb/postgres/pqconnection.pp

+ 3 - 1
packages/fcl-db/src/sqldb/postgres/pqconnection.pp

@@ -271,6 +271,7 @@ const Oid_Bool     = 16;
       Oid_interval  = 1186;
       Oid_interval  = 1186;
       oid_numeric   = 1700;
       oid_numeric   = 1700;
       Oid_uuid      = 2950;
       Oid_uuid      = 2950;
+      Oid_JSONB     = 3802;
 
 
 { TPQTransactionHandle }
 { TPQTransactionHandle }
 
 
@@ -1055,7 +1056,8 @@ begin
                              if size > MaxSmallint then size := MaxSmallint;
                              if size > MaxSmallint then size := MaxSmallint;
                              end;
                              end;
 //    Oid_text               : Result := ftString;
 //    Oid_text               : Result := ftString;
-    Oid_text,Oid_JSON      : Result := ftMemo;
+    Oid_text,Oid_JSON,
+    Oid_JSONB              : Result := ftMemo;
     Oid_Bytea              : Result := ftBlob;
     Oid_Bytea              : Result := ftBlob;
     Oid_oid                : Result := ftInteger;
     Oid_oid                : Result := ftInteger;
     Oid_int8               : Result := ftLargeInt;
     Oid_int8               : Result := ftLargeInt;