1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-12462 SPATIAL index fails to work with CONTAINS.

Flags are wrongly set for MBR_CONTAINS/MBR_WITHIN functions.
This commit is contained in:
Alexey Botchkov
2017-05-02 16:24:42 +04:00
parent 3ea9d3e59e
commit a60bdcba64
13 changed files with 47 additions and 31 deletions

View File

@ -11,3 +11,12 @@ SET storage_engine=innodb;
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
drop table t1;
#
# MDEV-12462 SPATIAL index fails to work with CONTAINS
#
create table t1(id int not null primary key, g1 geometry not null, spatial index(g1));
insert into t1 values(1, polygonfromtext('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'));
explain select id from t1 where contains(g1, pointfromtext('POINT(1 1)'));
select id from t1 where contains(g1, pointfromtext('POINT(1 1)'));
drop table t1;