We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 恩,批 else { for (Object[] params : paramMatrix) { for (int i = 0; i < params.length; i++) { adaptors[i].set(pstat, params[i], i + 1); } pstat.addBatch();// 需要配置一下batchSize,嘻嘻,不然分分钟爆内存!! } int[] counts = pstat.executeBatch(); pstat.close(); statIsClosed = true; // 计算总共影响的行数 int sum = 0; for (int i : counts) sum += i; st.getContext().setUpdateCount(sum);
int[] counts = pstat.executeBatch(); 这个语句返回的counts数据不够准确(全是负数),应该使用 getUpdateCount() 来获取。
The text was updated successfully, but these errors were encountered:
有道理
Sorry, something went wrong.
fix issue #328
1cd7f5d
fixed
wendal
No branches or pull requests
源码是这样的:
int[] counts = pstat.executeBatch();
这个语句返回的counts数据不够准确(全是负数),应该使用 getUpdateCount() 来获取。
The text was updated successfully, but these errors were encountered: