TCustomBufDataset: set PacketRecords to 1 only on a UniDirectional dataset

git-svn-id: trunk@44633 -
This commit is contained in:
ondrej 2020-04-07 09:59:32 +00:00
parent 0ff254e00f
commit e08d8bba82

View File

@ -1999,7 +1999,8 @@ begin
begin
SetUniDirectional(AValue);
ClearIndexes;
FPacketRecords := 1; // temporary
if IsUniDirectional then
FPacketRecords := 1; // UniDirectional dataset does not allow FPacketRecords<0
end;
end;