Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,18 @@ | ||
| connect con, localhost, root,,; | ||
| connection default; | ||
| create table t1 (a int primary key, b int unique key) engine = rocksdb; | ||
| insert into t1 values(1, 1); | ||
| connection con; | ||
| begin; | ||
| update t1 set b = 2 where b = 1; | ||
| connection default; | ||
| insert into t1 values(2, 1); | ||
| ERROR HY000: Lock wait timeout exceeded; try restarting transaction: Timeout on index: test.t1.b | ||
| ERROR HY000: Lock wait timeout exceeded; try restarting transaction | ||
| connection con; | ||
| rollback; | ||
| select * from t1; | ||
| a b | ||
| 1 1 | ||
| connection default; | ||
| drop table t1; | ||
| disconnect con; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters