Merge pull request #1076 from fengbugou/v5-dev

Update StatementUtil.java
This commit is contained in:
Golden Looly 2020-09-11 18:06:29 +08:00 committed by GitHub
commit f1588a9c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,8 +163,9 @@ public class StatementUtil {
sql = sql.trim();
SqlLog.INSTANCE.log(sql, paramsBatch);
PreparedStatement ps = conn.prepareStatement(sql);
Map<Integer, Integer> nullTypeMap = new HashMap<>();
for (Object[] params : paramsBatch) {
StatementUtil.fillParams(ps, params);
StatementUtil.fillParams(ps, params, nullTypeMap);
ps.addBatch();
}
return ps;