OceanBase Client for Java is a JDBC 4.2 compatible driver, used to connect applications developed in Java to OceanBase Database Server.
GNU Lesser General Public License v2.1
28
stars
9
forks
source link
[Bug]: 批处理模式 数据库更新0条 为什么要默认返回跟新数量为一条 #10
Open
wangya1529 opened 2 months ago
Describe the bug
public void addSuccessStat(long updateCount, long insertId, boolean containOnDuplicateKey, String serverInfo) { if (containOnDuplicateKey && updateCount == 0) { updateCount = 1; } addSuccessStat(updateCount, insertId); this.serverInfo = serverInfo; }
Environment
版本2.4.3 oracle模式
Fast reproduce steps
正常的更新 sql 命中 containOnDuplicateKey=true oracle模式
Expected behavior
No response
Actual behavior
No response
Additional context
No response