Skip to content

Commit

Permalink
[bugfix][lib][rdbms] Append jdbc suffix before invoking validJbdcUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Nov 4, 2024
1 parent 1474331 commit 9b7fd3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ private static void dealJdbcAndTable(Configuration originalConfig)
throw AddaxException.asAddaxException(REQUIRED_VALUE, "The parameter [connection.jdbcUrl] is not set.");
}

jdbcUrl = dataBaseType.appendJDBCSuffixForReader(jdbcUrl);

if (isPreCheck) {
DBUtil.validJdbcUrlWithoutRetry(dataBaseType, jdbcUrl, username, password, preSql);
}
else {
DBUtil.validJdbcUrl(dataBaseType, jdbcUrl, username, password, preSql);
}

jdbcUrl = dataBaseType.appendJDBCSuffixForReader(jdbcUrl);

// 回写到connection.jdbcUrl
originalConfig.set(Key.CONNECTION + "." + Key.JDBC_URL, jdbcUrl);

Expand Down

0 comments on commit 9b7fd3e

Please sign in to comment.