提交 f2c4f557 authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 110: Multi-version concurrency / wrong exception is thrown.

上级 7e6ea6d1
...@@ -213,7 +213,7 @@ public abstract class Command implements CommandInterface { ...@@ -213,7 +213,7 @@ public abstract class Command implements CommandInterface {
if (e.getErrorCode() == ErrorCode.CONCURRENT_UPDATE_1) { if (e.getErrorCode() == ErrorCode.CONCURRENT_UPDATE_1) {
long now = System.currentTimeMillis(); long now = System.currentTimeMillis();
if (now - start > session.getLockTimeout()) { if (now - start > session.getLockTimeout()) {
throw e; throw Message.getSQLException(ErrorCode.LOCK_TIMEOUT_1, new String[]{""}, e);
} }
try { try {
if (sync == database) { if (sync == database) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论