Skip to content

Commit

Permalink
fix : Batch Insert
Browse files Browse the repository at this point in the history
  • Loading branch information
liqingfeng committed May 12, 2020
1 parent e1b7ff7 commit 441c373
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public int toBatchInsert(List<?> batchValues) {
q.addToBatch();
fieldMap.clear();
}
q.executeUpdate();
q.executeBatch();
con.commit();
return batchValues.size();
} catch (Exception ex) {
Expand Down

0 comments on commit 441c373

Please sign in to comment.