瀏覽代碼

* Patch from Joao Morais to fix the reading of a bytea field from a PgSQL database

git-svn-id: trunk@11118 -
joost 17 年之前
父節點
當前提交
46468145a7
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/fcl-db/src/sqldb/postgres/pqconnection.pp

+ 2 - 0
packages/fcl-db/src/sqldb/postgres/pqconnection.pp

@@ -103,6 +103,7 @@ ResourceString
   SErrPrepareFailed = 'Preparation of query failed.';
 
 const Oid_Bool     = 16;
+      Oid_Bytea    = 17;
       Oid_Text     = 25;
       Oid_Oid      = 26;
       Oid_Name     = 19;
@@ -395,6 +396,7 @@ begin
                              end;
 //    Oid_text               : Result := ftstring;
     Oid_text               : Result := ftBlob;
+    Oid_Bytea              : Result := ftBlob;
     Oid_oid                : Result := ftInteger;
     Oid_int8               : Result := ftLargeInt;
     Oid_int4               : Result := ftInteger;