fcl-db: sqldb: Propagate ConnOptions from Proxy connection to TSQLConnector.ConnOptions, when ConnectorType changes (not OnInternalConnect, which is late).

Attempt to set TSQLTransaction.Options to stoUseImplicit check if TSQLConnection support sqImplicitTransaction.

git-svn-id: trunk@32359 -
This commit is contained in:
lacak 2015-11-19 07:25:03 +00:00
parent 13cfc4ac8f
commit 124100cde1

View File

@ -3270,6 +3270,7 @@ begin
If Assigned(FProxy) then If Assigned(FProxy) then
FreeProxy; FreeProxy;
FConnectorType:=AValue; FConnectorType:=AValue;
CreateProxy;
end; end;
end; end;
@ -3287,7 +3288,7 @@ Var
begin begin
inherited DoInternalConnect; inherited DoInternalConnect;
CreateProxy; CheckProxy;
FProxy.CharSet:=Self.CharSet; FProxy.CharSet:=Self.CharSet;
FProxy.DatabaseName:=Self.DatabaseName; FProxy.DatabaseName:=Self.DatabaseName;
FProxy.HostName:=Self.HostName; FProxy.HostName:=Self.HostName;
@ -3327,6 +3328,7 @@ begin
DatabaseErrorFmt(SErrUnknownConnectorType,[ConnectorType],Self); DatabaseErrorFmt(SErrUnknownConnectorType,[ConnectorType],Self);
FProxy:=D.ConnectionClass.Create(Self); FProxy:=D.ConnectionClass.Create(Self);
FFieldNameQuoteChars := FProxy.FieldNameQuoteChars; FFieldNameQuoteChars := FProxy.FieldNameQuoteChars;
FConnOptions := FProxy.ConnOptions;
end; end;
procedure TSQLConnector.FreeProxy; procedure TSQLConnector.FreeProxy;