mirror of
https://github.com/MariaDB/server.git
synced 2025-09-08 06:27:57 +03:00

Removed usage of @r/result as this made life hard when testing different table handlers. Allow concurrent inserts if no update/binary log. Don't remove key_cache at flush tables. Fixed bug in SELECT DISTINCT SUM()...
26 lines
471 B
Plaintext
26 lines
471 B
Plaintext
connect (con1,localhost,root,,);
|
|
connect (con2,localhost,root,,);
|
|
connection con1;
|
|
drop table if exists t1;
|
|
create temporary table t1(n int not null primary key);
|
|
drop table if exists t2;
|
|
create table t2(n int);
|
|
insert into t2 values(3);
|
|
let $1=100;
|
|
while ($1)
|
|
{
|
|
connection con1;
|
|
send replace into t1 select n from t2;
|
|
connection con2;
|
|
send flush tables;
|
|
connection con1;
|
|
reap;
|
|
connection con2;
|
|
reap;
|
|
dec $1;
|
|
}
|
|
|
|
connection con1;
|
|
select * from t1;
|
|
drop table t2;
|