diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-01-20 14:06:33 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-01-20 14:06:33 +0100 |
commit | 7caa80c48170f8a35ef8ece7a1881fe1f0e022dd (patch) | |
tree | 201b79ee679da159754e5e2ef6ffc604f146c948 /mysql-test/t/gis2.test | |
parent | cc74bb3178b0296e9865ebd42588709c984b722e (diff) | |
download | mariadb-git-7caa80c48170f8a35ef8ece7a1881fe1f0e022dd.tar.gz |
MDEV-3934 Assertion `((keypart_map+1) & keypart_map) == 0' failed in _mi_pack_key with an index on a POINT column
sel_arg_range_seq_next(): set keypart map also for GEOM_FLAG keys
Diffstat (limited to 'mysql-test/t/gis2.test')
-rw-r--r-- | mysql-test/t/gis2.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/gis2.test b/mysql-test/t/gis2.test new file mode 100644 index 00000000000..b734ab19ecd --- /dev/null +++ b/mysql-test/t/gis2.test @@ -0,0 +1,17 @@ +# +# MDEV-3934 Assertion `((keypart_map+1) & keypart_map) == 0' failed in _mi_pack_key with an index on a POINT column +# + +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)')); +DROP TABLE t1; + |