Skip to content

Commit

Permalink
[hotfix-#1869] [connector-jdbc-base] Using Collections.singletonList …
Browse files Browse the repository at this point in the history
…returns an unmodifiable list, but modifications are made in the code
  • Loading branch information
gaoliang authored and zoudaokoulife committed Feb 20, 2024
1 parent 786f68a commit 38fed40
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ protected JdbcConfig getSinkConnectionConfig(
JdbcConfig jdbcConfig = new JdbcConfig();
SinkConnectionConfig conf = new SinkConnectionConfig();
jdbcConfig.setConnection(Collections.singletonList(conf));

conf.setJdbcUrl(readableConfig.get(URL));
conf.setTable(Collections.singletonList(readableConfig.get(TABLE_NAME)));
conf.setTable(Arrays.asList(readableConfig.get(TABLE_NAME)));
conf.setSchema(readableConfig.get(SCHEMA));
conf.setAllReplace(readableConfig.get(SINK_ALL_REPLACE));

Expand Down

1 comment on commit 38fed40

@baisui1981
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样改不妥哦,在需要改内容的地方直接 再new 一个出来就可以了

Please sign in to comment.