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 committed Feb 2, 2024
1 parent 786f68a commit a7f95e4
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

0 comments on commit a7f95e4

Please sign in to comment.