Debian Codegraph @

mysql-test/suite/maria/insert_select.test

raw
1 #
2 # MDEV-4010
3 # Deadlock on concurrent INSERT .. SELECT into an Aria table with statement
4 # binary logging
5 #
6 --source include/have_binlog_format_statement.inc
7
8 create table t1 (pk int primary key) engine=Aria;
9 insert into t1 values (1);
10
11 send insert into t1 select sleep(2)+1 from t1;
12
13 --connect (con1,localhost,root,,)
14
15 insert into t1 select 2 from t1;
16
17 --connection default
18 --error 1062
19 --reap
20 --disconnect con1
21 drop table t1;