Skip to content
Permalink
Browse files

Return default net group in TConnectionParameters.GetNetTypeGroup. Ra…

…ising an exception lets the app die for some reason. Reproduction: click drop-down button on "Database(s)" session setting
  • Loading branch information...
ansgarbecker committed Aug 11, 2019
1 parent f444306 commit d07d463fc104358ee6641d4b220a2bf6354882d8
Showing with 6 additions and 2 deletions.
  1. +6 −2 source/dbconnection.pas
@@ -1329,8 +1329,12 @@ function TConnectionParameters.GetNetTypeGroup: TNetTypeGroup;
Result := ngMSSQL;
ntPgSQL_TCPIP, ntPgSQL_SSHtunnel:
Result := ngPgSQL;
else
raise Exception.CreateFmt(_(MsgUnhandledNetType), [Integer(FNetType)]);
else begin
// Return default net group here. Raising an exception lets the app die for some reason.
// Reproduction: click drop-down button on "Database(s)" session setting
//raise EDbError.CreateFmt(_(MsgUnhandledNetType), [Integer(FNetType)]);
Result := ngMySQL;
end;
end;
end;

0 comments on commit d07d463

Please sign in to comment.
You can’t perform that action at this time.