Browse Source

* set transaction of proxy via field instead of setter since that
triggers a cascade of actions. Mantis #20694

git-svn-id: trunk@19657 -

marco 13 years ago
parent
commit
7a7d8e27cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-db/src/sqldb/sqldb.pp

+ 2 - 2
packages/fcl-db/src/sqldb/sqldb.pp

@@ -1985,7 +1985,7 @@ procedure TSQLConnector.SetTransaction(Value: TSQLTransaction);
 begin
 begin
   inherited SetTransaction(Value);
   inherited SetTransaction(Value);
   If Assigned(FProxy) and (FProxy.Transaction<>Value) then
   If Assigned(FProxy) and (FProxy.Transaction<>Value) then
-    FProxy.Transaction:=Value;
+    FProxy.FTransaction:=Value;
 end;
 end;
 
 
 procedure TSQLConnector.DoInternalConnect;
 procedure TSQLConnector.DoInternalConnect;
@@ -2002,7 +2002,7 @@ begin
   FProxy.HostName:=Self.HostName;
   FProxy.HostName:=Self.HostName;
   FProxy.UserName:=Self.UserName;
   FProxy.UserName:=Self.UserName;
   FProxy.Password:=Self.Password;
   FProxy.Password:=Self.Password;
-  FProxy.Transaction:=Self.Transaction;
+  FProxy.FTransaction:=Self.Transaction;
   D:=GetConnectionDef(ConnectorType);
   D:=GetConnectionDef(ConnectorType);
   D.ApplyParams(Params,FProxy);
   D.ApplyParams(Params,FProxy);
   FProxy.Connected:=True;
   FProxy.Connected:=True;