Debian Codegraph @

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

raw
1 # WL#6745 InnoDB R-tree support
2 # This test case will test R-tree multi level split.
3
4 # Not supported in embedded
5 --source include/not_embedded.inc
6
7 --source include/have_innodb.inc
8 --source include/have_debug.inc
9 --source include/big_test.inc
10 --source include/not_valgrind.inc
11 --source include/have_64bit.inc
12
13 # Create table with R-tree index.
14 create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb;
15
16 # Insert enough values to let R-tree split.
17 delimiter |;
18 create procedure insert_t1(IN total int)
19 begin
20 declare i int default 1;
21 while (i <= total) DO
22 insert into t1 values (i, Point(i, i));
23 set i = i + 1;
24 end while;
25 end|
26 delimiter ;|
27
28 # Test level 3 rtree.
29 BEGIN;
30 CALL insert_t1(70000);
31 COMMIT;
32
33 BEGIN;
34 CALL insert_t1(90);
35 CALL insert_t1(90);
36 CALL insert_t1(83);
37 COMMIT;
38
39 insert into t1 values (0, Point(0.9, 0.9));
40
41 # Check table.
42 check table t1;
43
44 drop procedure insert_t1;
45 drop table t1;