| 1 |
create table t1 (i int, g geometry not null SRID 0, spatial index (g))engine=innodb; |
| 2 |
SET SESSION debug="+d,rtree_test_check_count"; |
| 3 |
insert into t1 values (1, POINT(1,1)); |
| 4 |
insert into t1 values (1, POINT(1.5,1.5)); |
| 5 |
insert into t1 values (1, POINT(3,3)); |
| 6 |
insert into t1 values (1, POINT(3.1,3.1)); |
| 7 |
insert into t1 values (1, POINT(5,5)); |
| 8 |
CALL mtr.add_suppression("Flagged corruption of `g` in table `test`.`t1` in CHECK TABLE; Wrong count"); |
| 9 |
check table t1; |
| 10 |
Table Op Msg_type Msg_text |
| 11 |
test.t1 check Warning InnoDB: Index 'g' contains 0 entries, should be 5. |
| 12 |
test.t1 check error Corrupt |
| 13 |
drop table t1; |