mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 19:09:27 +02:00
fcl-db: sqldb: make deferred blob loading dependent on sqoKeepOpenOnCommit not on sqoAutoCommit. As original problem is that dataset remains open on commit. Related to rev.33496
git-svn-id: trunk@33534 -
This commit is contained in:
parent
bd564b8933
commit
2e005ecc7d
@ -2707,7 +2707,8 @@ end;
|
||||
function TCustomSQLQuery.LoadField(FieldDef : TFieldDef; buffer : pointer; out CreateBlob : boolean) : boolean;
|
||||
begin
|
||||
Result := SQLConnection.LoadField(Cursor, FieldDef, buffer, CreateBlob);
|
||||
if Result and (FieldDef.DataType in ftBlobTypes) and (sqoAutoCommit in Options) then
|
||||
// disable deferred blob loading for "disconnected" datasets
|
||||
if Result and (FieldDef.DataType in ftBlobTypes) and (sqoKeepOpenOnCommit in Options) then
|
||||
CreateBlob:=True
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user