* 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:
joost 2009-02-03 22:28:12 +00:00
parent 1d66bf0764
commit 6ceb016593

View File

@ -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;