| 1 |
--source include/have_binlog_format_row.inc |
| 2 |
--source include/master-slave.inc |
| 3 |
|
| 4 |
CREATE TABLE t1 (g POINT NOT NULL, SPATIAL INDEX(g)); |
| 5 |
INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('Point(1 1)')); |
| 6 |
INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('Point(2 1)')); |
| 7 |
INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('Point(1 2)')); |
| 8 |
INSERT INTO t1 VALUES (ST_GEOMFROMTEXT('Point(2 2)')); |
| 9 |
DELETE FROM t1 where MBREqual(g, ST_GEOMFROMTEXT('Point(1 2)')); |
| 10 |
|
| 11 |
--sync_slave_with_master |
| 12 |
select count(*) from t1; |
| 13 |
|
| 14 |
--connection master |
| 15 |
DELETE FROM t1; |
| 16 |
drop table t1; |
| 17 |
--source include/rpl_end.inc |