Browse Source

* Fix ftgUID field size. Fixes issue #40107

Michaël Van Canneyt 1 tháng trước cách đây
mục cha
commit
b273e44379
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/fcl-db/src/base/bufdataset.pas

+ 1 - 1
packages/fcl-db/src/base/bufdataset.pas

@@ -2536,8 +2536,8 @@ function TCustomBufDataset.GetFieldSize(FieldDef : TFieldDef) : longint;
 begin
   case FieldDef.DataType of
     ftUnknown    : result := 0;
+    ftGuid: result := FieldDef.Size + 1;
     ftString,
-      ftGuid,
       ftFixedChar: result := FieldDef.Size*FieldDef.CharSize + 1;
     ftFixedWideChar,
       ftWideString:result := (FieldDef.Size + 1)*FieldDef.CharSize;