提交 9eb0946d authored 作者: Thomas Mueller's avatar Thomas Mueller

Multi-version concurrency: SELECT ... FOR UPDATE threw a "concurrent update"…

Multi-version concurrency: SELECT ... FOR UPDATE threw a "concurrent update" exception immediately instead of a "lock timeout" exception after the set lock timeout if the row was already locked by another connection.
上级 63ad02ed
...@@ -161,7 +161,7 @@ public class TestMvcc2 extends TestBase { ...@@ -161,7 +161,7 @@ public class TestMvcc2 extends TestBase {
conn2.createStatement().execute("select * from test where id = 3 for update"); conn2.createStatement().execute("select * from test where id = 3 for update");
fail(); fail();
} catch (SQLException e) { } catch (SQLException e) {
assertEquals(ErrorCode.CONCURRENT_UPDATE_1, e.getErrorCode()); assertEquals(ErrorCode.LOCK_TIMEOUT_1, e.getErrorCode());
} }
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论