mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 17:09:16 +02:00
* Applied slightly modified patch from bug ID #24110
git-svn-id: trunk@26719 -
This commit is contained in:
parent
c4918b6329
commit
f59a2272d9
@ -563,6 +563,7 @@ type
|
||||
procedure ApplyUpdates; virtual; overload;
|
||||
procedure ApplyUpdates(MaxErrors: Integer); virtual; overload;
|
||||
procedure MergeChangeLog;
|
||||
Procedure ClearIndexes;
|
||||
procedure CancelUpdates; virtual;
|
||||
destructor Destroy; override;
|
||||
function Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions) : boolean; override;
|
||||
@ -838,9 +839,7 @@ begin
|
||||
SetLength(FUpdateBuffer,0);
|
||||
SetLength(FBlobBuffers,0);
|
||||
SetLength(FUpdateBlobBuffers,0);
|
||||
For I:=0 to Length(FIndexes)-1 do
|
||||
FreeAndNil(Findexes[I]);
|
||||
SetLength(FIndexes,0);
|
||||
ClearIndexes;
|
||||
FreeAndNil(FIndexDefs);
|
||||
inherited destroy;
|
||||
end;
|
||||
@ -2606,6 +2605,17 @@ begin
|
||||
result := ABlobBuffer;
|
||||
end;
|
||||
|
||||
procedure TCustomBufDataset.ClearIndexes;
|
||||
var
|
||||
i:integer;
|
||||
begin
|
||||
CheckInactive;
|
||||
For I:=0 to Length(FIndexes)-1 do
|
||||
FreeAndNil(Findexes[I]);
|
||||
SetLength(FIndexes,0);
|
||||
FIndexesCount:=0;
|
||||
end;
|
||||
|
||||
function TCustomBufDataset.GetNewWriteBlobBuffer : PBlobBuffer;
|
||||
|
||||
var ABlobBuffer : PBlobBuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user