소스 검색

+ Fix bug #4376, varchar without size specification

git-svn-id: trunk@1389 -
joost 20 년 전
부모
커밋
21dde458f5
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      fcl/db/sqldb/postgres/pqconnection.pp

+ 3 - 0
fcl/db/sqldb/postgres/pqconnection.pp

@@ -539,7 +539,10 @@ begin
       fieldtype := TranslateFldType(PQftype(BaseRes, i));
 
       if (fieldtype = ftstring) and (size = -1) then
+        begin
         size := pqfmod(baseres,i)-3;
+        if size = -4 then size := dsMaxStringSize;
+        end;
       if fieldtype = ftdate  then
         size := sizeof(double);