Browse Source

fcl-db: base: use type casting of StrPLCopy parameter to call right ansi version instead of unicode version.
Affect all TStringFields with DataSize>8192 !

git-svn-id: trunk@27691 -

lacak 11 years ago
parent
commit
3df0c06293
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/base/fields.inc

+ 1 - 1
packages/fcl-db/src/base/fields.inc

@@ -1201,7 +1201,7 @@ begin
     if FTransliterate then
     if FTransliterate then
       DataSet.Translate(@AValue[1],@DynBuf[0],True)
       DataSet.Translate(@AValue[1],@DynBuf[0],True)
     else
     else
-      StrPLCopy(@DynBuf[0], AValue, DataSize);
+      StrPLCopy(PChar(DynBuf), AValue, DataSize);
     SetData(@DynBuf[0]);
     SetData(@DynBuf[0]);
     end
     end
 end;
 end;