mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 10:31:54 +01:00
31 lines
864 B
Text
31 lines
864 B
Text
source include/have_innodb.inc;
|
|
|
|
echo ### Issue #365, bug 7 (duplicate of historical row);
|
|
create or replace table t1 (a int primary key, b int)
|
|
with system versioning engine myisam;
|
|
insert into t1 (a) values (1);
|
|
|
|
replace t1 values (1,2),(1,3),(2,4);
|
|
|
|
#
|
|
# MDEV-14829 Assertion `0' failed in Protocol::end_statement upon concurrent UPDATE
|
|
#
|
|
|
|
create or replace table t1 (pk int, a char(3), b char(3), primary key(pk))
|
|
engine=innodb with system versioning;
|
|
|
|
insert into t1 (pk) values (1);
|
|
connect (con1,localhost,root,,test);
|
|
start transaction;
|
|
select * from t1 for update;
|
|
connection default;
|
|
send update t1 set b = 'foo';
|
|
connection con1;
|
|
let $wait_condition= select count(*) from information_schema.innodb_lock_waits;
|
|
source include/wait_condition.inc;
|
|
error ER_LOCK_DEADLOCK;
|
|
update t1 set a = 'bar';
|
|
disconnect con1;
|
|
connection default;
|
|
reap;
|
|
drop table t1;
|