mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
This commit is contained in:
@ -599,3 +599,12 @@ create unique index a on t1(a);
|
||||
drop table t1;
|
||||
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
|
||||
drop table t1;
|
||||
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)'));
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range g1 g1 34 NULL 1 Using where
|
||||
select id from t1 where contains(g1, pointfromtext('POINT(1 1)'));
|
||||
id
|
||||
1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user