mariadb/mysql-test/suite/tokudb.hotindex/t/hotindex-update-0.test
Rich Prohaska 748a657528 refs #5545 replace storage_engine with default_storage_engine in tokudb mysql tests
git-svn-id: file:///svn/mysql/tests/mysql-test@48583 c7de825b-a66e-492c-adef-691d508d4ae1
2012-10-04 14:31:31 +00:00

38 lines
709 B
Text

# test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb';
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
connection default;
# create table s
--disable_warnings
drop table if exists s;
--enable_warnings
create table s (a int, b int);
# populate table s
let $a = 10000;
while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a;
}
set tokudb_create_index_online=1;
send create index i_a on s(a);
connection conn1;
let $a = 10000;
while ($a) {
eval update s set a=20000+$a where a=$a;
dec $a;
}
connection default;
reap;
disconnect conn1;
#cleanup
drop table s;