提交 1a5e654a authored 作者: Thomas Mueller's avatar Thomas Mueller

MVCC: when trying to insert two rows with the same key from two connections, the…

MVCC: when trying to insert two rows with the same key from two connections, the second connection immediately threw the exception "Unique index or primary key violation".
上级 08218b9f
......@@ -1776,10 +1776,10 @@ public class ErrorCode {
public static final int METHOD_NOT_ALLOWED_FOR_PREPARED_STATEMENT = 90130;
/**
* The error with code <code>90131</code> is thrown when
* using multi version concurrency control, and trying to update the same
* row from within two connections at the same time.
* Example:
* The error with code <code>90131</code> is thrown when using multi version
* concurrency control, and trying to update the same row from within two
* connections at the same time, or trying to insert two rows with the same
* key from two connections. Example:
* <pre>
* jdbc:h2:~/test;MVCC=TRUE
* Session 1:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论