mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 06:39:34 +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
|
with TSQLConnection(DataBase) do
|
||||||
if Transaction = self then Transaction := nil;
|
if Transaction = self then Transaction := nil;
|
||||||
inherited SetDatabase(Value);
|
inherited SetDatabase(Value);
|
||||||
If Assigned(Database) then
|
If Assigned(Database) and not (csLoading in ComponentState) then
|
||||||
If (TSQLConnection(DataBase).Transaction=Nil) then
|
If (TSQLConnection(DataBase).Transaction=Nil) then
|
||||||
TSQLConnection(DataBase).Transaction:=Self;
|
TSQLConnection(DataBase).Transaction:=Self;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user