Skip to content

Commit

Permalink
[bugfix][jdbc] fix uniqueKey NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
kyo-tom authored and zoudaokoulife committed Dec 15, 2023
1 parent 41b96a8 commit 3a72ca9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;

Expand Down Expand Up @@ -99,7 +100,7 @@ public class JdbcConfig extends CommonConfig implements Serializable {

protected List<String> preSql;
protected List<String> postSql;
protected List<String> uniqueKey;
protected List<String> uniqueKey = new ArrayList<>();

/** upsert 写数据库时,是否null覆盖原来的值 */
protected boolean allReplace = false;
Expand Down

0 comments on commit 3a72ca9

Please sign in to comment.