Skip to content

Commit

Permalink
dbeaver/dbeaver-ee#2031 Fix specified url usage for url configuration…
Browse files Browse the repository at this point in the history
… type for some databases (#17856)
  • Loading branch information
E1izabeth committed Oct 9, 2022
1 parent 665d3b9 commit 3ddfa39
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,9 @@ public boolean isSampleURLForced() {

@Override
public String getConnectionURL(@NotNull DBPConnectionConfiguration connectionInfo) {
if (isSampleURLForced()) {
if (connectionInfo.getConfigurationType() == DBPDriverConfigurationType.URL) {
return connectionInfo.getUrl();
} else if (isSampleURLForced()) {
// Generate URL by template
return JDBCURL.generateUrlByTemplate(this, connectionInfo);
} else {
Expand Down

0 comments on commit 3ddfa39

Please sign in to comment.