mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
2e814d4702
Contains also MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7 The failure happened because 5.7 has changed the signature of the bool handler::primary_key_is_clustered() const virtual function ("const" was added). InnoDB was using the old signature which caused the function not to be used. MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7 Fixed mutexing problem on lock_trx_handle_wait. Note that rpl_parallel and rpl_optimistic_parallel tests still fail. MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan) Reason: incorrect merge MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan) Reason: incorrect merge
82 lines
1.6 KiB
C++
82 lines
1.6 KiB
C++
delimiter |;
|
|
create procedure populate_t1()
|
|
begin
|
|
declare i int default 1;
|
|
while (i <= 200) do
|
|
insert into t1 values (i, 'a', 'b');
|
|
set i = i + 1;
|
|
end while;
|
|
end|
|
|
create procedure populate_t1_small()
|
|
begin
|
|
declare i int default 1;
|
|
while (i <= 20) do
|
|
insert into t1 values (i, 'c', 'd');
|
|
set i = i + 1;
|
|
end while;
|
|
end|
|
|
create procedure populate_t1_small2()
|
|
begin
|
|
declare i int default 30;
|
|
while (i <= 50) do
|
|
insert into t1 values (i, 'e', 'f');
|
|
set i = i + 1;
|
|
end while;
|
|
end|
|
|
delimiter ;|
|
|
#
|
|
begin;
|
|
select count(*) from t1;
|
|
call populate_t1();
|
|
select count(*) from t1;
|
|
select * from t1 limit 10;
|
|
rollback;
|
|
select count(*) from t1;
|
|
#
|
|
begin;
|
|
call populate_t1();
|
|
select count(*) from t1;
|
|
commit;
|
|
select count(*) from t1;
|
|
#
|
|
truncate table t1;
|
|
select count(*) from t1;
|
|
#
|
|
call populate_t1_small();
|
|
select count(*) from t1;
|
|
rollback;
|
|
select count(*) from t1;
|
|
truncate table t1;
|
|
#
|
|
call populate_t1();
|
|
select count(*) from t1;
|
|
delete from t1 where keyc <= 60;
|
|
select count(*) from t1;
|
|
call populate_t1_small();
|
|
select count(*) from t1;
|
|
select * from t1 limit 10;
|
|
begin;
|
|
call populate_t1_small2();
|
|
select count(*) from t1;
|
|
select * from t1 where keyc > 30 limit 10;
|
|
rollback;
|
|
select count(*) from t1;
|
|
select * from t1 where keyc > 30 limit 10;
|
|
#
|
|
update t1 set keyc = keyc + 2000;
|
|
select * from t1 limit 10;
|
|
rollback;
|
|
begin;
|
|
update t1 set keyc = keyc + 2000;
|
|
select * from t1 limit 10;
|
|
rollback;
|
|
select * from t1 limit 10;
|
|
commit;
|
|
select * from t1 limit 10;
|
|
#
|
|
insert into t2 select * from t1 where keyc < 2101;
|
|
select count(*) from t2;
|
|
#
|
|
drop procedure populate_t1;
|
|
drop procedure populate_t1_small;
|
|
drop procedure populate_t1_small2;
|