mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
7caa80c481
sel_arg_range_seq_next(): set keypart map also for GEOM_FLAG keys
14 lines
393 B
Text
14 lines
393 B
Text
CREATE TABLE t1 (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
point_data POINT NOT NULL,
|
|
PRIMARY KEY (id),
|
|
KEY idx_point_data(point_data)
|
|
) ENGINE=MyISAM;
|
|
INSERT t1 (point_data) VALUES
|
|
(GeomFromText('Point(37.0248492 23.8512726)')),
|
|
(GeomFromText('Point(38.0248492 23.8512726)'));
|
|
SELECT id FROM t1
|
|
WHERE ST_Contains(point_data, GeomFromText('Point(38.0248492 23.8512726)'));
|
|
id
|
|
2
|
|
DROP TABLE t1;
|