diff options
author | unknown <hf@deer.(none)> | 2004-09-02 11:11:16 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-09-02 11:11:16 +0500 |
commit | c4711fb9ea7fac5d10011d57f554be286d60d718 (patch) | |
tree | 3729cbd0d52a55298b6e3fb82a92f86590944869 /mysql-test/t/gis.test | |
parent | 848414cf11bb77fe20b583eece29bccb0d25338d (diff) | |
parent | 0ceb4ddc9f9212a1f9caf6b2179c59158677a91f (diff) | |
download | mariadb-git-c4711fb9ea7fac5d10011d57f554be286d60d718.tar.gz |
Merge bk@192.168.21.1:/usr/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.4815
sql/sql_class.cc:
Auto merged
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index 590007caba1..e35b9996a44 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -172,3 +172,21 @@ insert IGNORE into t1 values ('Garbage'); alter table t1 add spatial index(a); drop table t1; + +# +# Bug #5219: problem with range optimizer +# + +create table t1(a geometry not null, spatial index(a)); +insert into t1 values +(GeomFromText('POINT(1 1)')), (GeomFromText('POINT(3 3)')), +(GeomFromText('POINT(4 4)')), (GeomFromText('POINT(6 6)')); +select AsText(a) from t1 where + MBRContains(GeomFromText('Polygon((0 0, 0 2, 2 2, 2 0, 0 0))'), a) + or + MBRContains(GeomFromText('Polygon((2 2, 2 5, 5 5, 5 2, 2 2))'), a); +select AsText(a) from t1 where + MBRContains(GeomFromText('Polygon((0 0, 0 2, 2 2, 2 0, 0 0))'), a) + and + MBRContains(GeomFromText('Polygon((0 0, 0 7, 7 7, 7 0, 0 0))'), a); +drop table t1; |