diff options
author | unknown <hf@deer.(none)> | 2005-08-09 21:30:28 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-08-09 21:30:28 +0500 |
commit | e088a69901903405a72be2bffb8aa7dc47110cb9 (patch) | |
tree | 62cd2e5cd53a5d291dce8b6cc9643c2fe185eaff /mysql-test/t/gis-rtree.test | |
parent | dbfc9b741dd4b5b77a538fa57448b97238580a47 (diff) | |
download | mariadb-git-e088a69901903405a72be2bffb8aa7dc47110cb9.tar.gz |
Fix for bug #9465 (check table extended fails with SPATIAL)
myisam/mi_check.c:
different search function is used for SPATIAL keys
mysql-test/r/gis-rtree.result:
test result fixed
mysql-test/t/gis-rtree.test:
test case
Diffstat (limited to 'mysql-test/t/gis-rtree.test')
-rw-r--r-- | mysql-test/t/gis-rtree.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/gis-rtree.test b/mysql-test/t/gis-rtree.test index 3c38ec8d599..682f67c61c4 100644 --- a/mysql-test/t/gis-rtree.test +++ b/mysql-test/t/gis-rtree.test @@ -173,4 +173,19 @@ CREATE TABLE t2 (geom GEOMETRY NOT NULL, SPATIAL KEY gk(geom)); INSERT INTO t2 SELECT GeomFromText(st) FROM t1; drop table t1, t2; +CREATE TABLE t1 (`geometry` geometry NOT NULL default '',SPATIAL KEY `gndx` (`geometry`(32))) ENGINE=MyISAM DEFAULT CHARSET=latin1; + +INSERT INTO t1 (geometry) VALUES +(PolygonFromText('POLYGON((-18.6086111000 -66.9327777000, -18.6055555000 +-66.8158332999, -18.7186111000 -66.8102777000, -18.7211111000 -66.9269443999, +-18.6086111000 -66.9327777000))')); + +INSERT INTO t1 (geometry) VALUES +(PolygonFromText('POLYGON((-65.7402776999 -96.6686111000, -65.7372222000 +-96.5516666000, -65.8502777000 -96.5461111000, -65.8527777000 -96.6627777000, +-65.7402776999 -96.6686111000))')); +check table t1 extended; + +drop table t1; + # End of 4.1 tests |