Skip to content

Commit

Permalink
[bugfix][plugin][rdbmsreader]rdbmsreader jdbc_url is string not list (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
awol2005ex authored Nov 25, 2024
1 parent be7dcce commit 93c1938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void init()
String jdbcDriver = this.originalConfig.getString(JDBC_DRIVER, null);
if (jdbcDriver == null || StringUtils.isBlank(jdbcDriver)) {
// guess jdbc driver name from jdbc url if not set
final String jdbcType = connection.getList(Key.JDBC_URL).get(0).toString().split(":")[1];
final String jdbcType = connection.getString(Key.JDBC_URL).split(":")[1];
Arrays.stream(DataBaseType.values()).filter(
dataBaseType -> dataBaseType.getTypeName().equals(jdbcType)).findFirst().ifPresent(dataBaseType ->
DATABASE_TYPE.setDriverClassName(dataBaseType.getDriverClassName()));
Expand Down

0 comments on commit 93c1938

Please sign in to comment.