You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] JDBC 外部驱动连接多行删除报 cannot provide a rollbackable transaction(方言被推断为 H2 后绕过 jdbc 覆盖) #12657
点击提交
实际:The active backend cannot provide a rollbackable transaction for a batch; run without use_transaction.
期望:与 MySQL 连接一致,多行删除一次提交成功;或至少自动降级为非事务批量(executeBatch),不要直接失败。
同一操作在 MySQL 连接上正常,说明不是数据本身的问题。
根因
链路自后端向前:
Activity
dbx-bot commentedon Oct 19, 2026
以下 Issue 可能与当前问题相关:
这些结果由机器人自动检索,尚未确认重复。如属于同一问题,建议在已有 Issue 中补充信息。
Tong-bit-art commentedon Oct 19, 2026
关联线索:本问题的核心侧正解与 #12026 同源——该 PR 把
PoolKind::ExternalDriver从BatchTransactionPath::Unsupported改为走驱动的beginManualTransaction/commitManualTransaction协议(Fixes #11990,CI 全绿)。合并后外部驱动(含本单中getDatabaseProductName()报 H2、方言被推断为 h2 的情况)的批处理事务应可直接提交;前端对应的jdbc能力项可在其后评估是否恢复transaction: true。`