Skip to content

Commit

Permalink
fix oracle connect failure (#2812)
Browse files Browse the repository at this point in the history
* use method getJdbcUrl of parent

* Remove the incorrect print message
  • Loading branch information
lgcareer authored May 25, 2020
1 parent 9994878 commit 5b633cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public Result connectDataSource(@ApiIgnore @RequestAttribute(value = Constants.S
@RequestParam(value = "password") String password,
@RequestParam(value = "connectType") DbConnectType connectType,
@RequestParam(value = "other") String other) {
logger.info("login user {}, connect datasource: {} failure, note: {}, type: {}, connectType: {}, other: {}",
logger.info("login user {}, connect datasource: {}, note: {}, type: {}, connectType: {}, other: {}",
loginUser.getUserName(), name, note, type, connectType, other);
String parameter = dataSourceService.buildParameter(name, note, type, host, port, database, principal, userName, password, connectType, other);
Boolean isConnection = dataSourceService.checkConnection(type, parameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ public String driverClassSelector() {
return Constants.COM_ORACLE_JDBC_DRIVER;
}

/**
* gets the JDBC url for the data source connection
* @return jdbc url
*/
@Override
public String getJdbcUrl() {
String jdbcUrl = getAddress();
if (jdbcUrl.lastIndexOf("/") != (jdbcUrl.length() - 1)) {
jdbcUrl += "/";
}
return jdbcUrl;
}

/**
* @return db type
*/
Expand Down

0 comments on commit 5b633cf

Please sign in to comment.