mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 19:29:24 +02:00
* Do not set the Transaction property of a TDatabase while assigning TSQLTransaction.Database when the TSQLTransaction is loaded from stream
git-svn-id: trunk@12680 -
This commit is contained in:
parent
1d66bf0764
commit
6ceb016593
@ -779,7 +779,7 @@ begin
|
||||
with TSQLConnection(DataBase) do
|
||||
if Transaction = self then Transaction := nil;
|
||||
inherited SetDatabase(Value);
|
||||
If Assigned(Database) then
|
||||
If Assigned(Database) and not (csLoading in ComponentState) then
|
||||
If (TSQLConnection(DataBase).Transaction=Nil) then
|
||||
TSQLConnection(DataBase).Transaction:=Self;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user