Skip to content

Commit

Permalink
upline the dataSourceFactoryGetter pos
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Mar 10, 2023
1 parent b2983c6 commit 36cf41f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public void init(Configuration writerSliceConfig) {
this.jdbcUrl = ss[2];
LOG.info("this is ob1_0 jdbc url. user=" + this.username + " :url=" + this.jdbcUrl);
}

this.dataSourceFactoryGetter = DBUtil.getWriterDataSourceFactoryGetter(writerSliceConfig, this.containerContext);
this.table = SelectTable.createInTask(writerSliceConfig, this.dataSourceFactoryGetter.getDBReservedKeys());


Expand All @@ -256,7 +256,7 @@ public void init(Configuration writerSliceConfig) {
this.writeRecordSql = String.format(INSERT_OR_REPLACE_TEMPLATE, this.table);
BASIC_MESSAGE = String.format("jdbcUrl:[%s], table:[%s]", this.jdbcUrl, this.table);

this.dataSourceFactoryGetter = DBUtil.getWriterDataSourceFactoryGetter(writerSliceConfig, this.containerContext);

this.columns = SelectCols.createSelectCols(writerSliceConfig, this.dataSourceFactoryGetter.getDataSourceFactory());
this.columnNumber = this.columns.size();
}
Expand Down

0 comments on commit 36cf41f

Please sign in to comment.