浏览代码

* Allow string-parameters of more then 8000 characters, bug #13530

git-svn-id: trunk@13100 -
joost 16 年之前
父节点
当前提交
67dcd3be0b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-db/src/sqldb/odbc/odbcconn.pas

+ 1 - 1
packages/fcl-db/src/sqldb/odbc/odbcconn.pas

@@ -365,7 +365,7 @@ begin
           if AParams[ParamIndex].DataType = ftString then
           if AParams[ParamIndex].DataType = ftString then
             begin
             begin
             CType:=SQL_C_CHAR;
             CType:=SQL_C_CHAR;
-            SqlType:=SQL_CHAR;
+            SqlType:=SQL_LONGVARCHAR;
             end
             end
           else // ftBlob, ftMemo
           else // ftBlob, ftMemo
             begin
             begin