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