summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/innodb_gis/t/rtree_add_index.test
blob: a11f1783e2db7e20954a4e9ef9d3833f37c8ecb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--source include/have_innodb.inc

CREATE TABLE t1 (g MULTIPOINT NOT NULL) ENGINE=InnoDB STATS_PERSISTENT=0;
INSERT INTO t1 VALUES ('');

connect purge_control,localhost,root;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
connection default;

DELETE FROM t1;

ALTER TABLE t1 ADD SPATIAL INDEX (g);

disconnect purge_control;
--source ../../innodb/include/wait_all_purged.inc
DROP TABLE t1;