Debian Codegraph @

mysql-test/suite/innodb_gis/t/rtree_compress2.test

raw
1 # WL#6745 InnoDB R-tree support
2 # This test case will test R-tree multi level split.
3
4 # Restarting is not supported in embedded
5 --source include/not_embedded.inc
6
7 --source include/innodb_page_size_small.inc
8 --source include/big_test.inc
9 # Valgrind takes too much time on PB2 even in the --big-test runs.
10 --source include/not_valgrind.inc
11 let $restart_noprint=2;
12
13 SET GLOBAL innodb_file_per_table=1;
14
15 # Create table with R-tree index.
16 create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb ROW_FORMAT=COMPRESSED;
17
18 # Insert enough values to let R-tree split.
19 delimiter |;
20 create procedure insert_t1(IN total int)
21 begin
22 declare i int default 1;
23 while (i <= total) DO
24 insert into t1 values (i, Point(i, i));
25 set i = i + 1;
26 end while;
27 end|
28 delimiter ;|
29
30 # Test level 3 rtree.
31 begin;
32 CALL insert_t1(70000);
33 commit;
34
35 --let $shutdown_timeout=0
36 --source include/restart_mysqld.inc
37
38 check table t1;
39 select count(*) from t1;
40 delete from t1;
41
42 # Clean up.
43 drop procedure insert_t1;
44 drop table t1;