summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-10-24 09:57:31 +0300
committerGeorgi Kodinov <joro@sun.com>2009-10-24 09:57:31 +0300
commit9a5a77eb68a35b3e806bb65f94ec9cd9ab9b1b5e (patch)
treea351f8da600536a5ddbd59b8f1fc97281141e181 /mysql-test/t/gis.test
parent1339fb17fef8d365bf0eba95ec73d00a21d8879a (diff)
parent19ffe2308542735bc37e070bbdf266281ea8156a (diff)
downloadmariadb-git-9a5a77eb68a35b3e806bb65f94ec9cd9ab9b1b5e.tar.gz
automerge
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r--mysql-test/t/gis.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test
index 4a60e777cc7..2d10c3bf1e1 100644
--- a/mysql-test/t/gis.test
+++ b/mysql-test/t/gis.test
@@ -655,6 +655,22 @@ insert into t1 values (),(),();
select min(`col002`) from t1 union select `col002` from t1;
drop table t1;
+--echo #
+--echo # Bug #47780: crash when comparing GIS items from subquery
+--echo #
+
+CREATE TABLE t1(a INT, b MULTIPOLYGON);
+INSERT INTO t1 VALUES
+ (0,
+ GEOMFROMTEXT(
+ 'multipolygon(((1 2,3 4,5 6,7 8,9 8),(7 6,5 4,3 2,1 2,3 4)))'));
+
+--echo # must not crash
+SELECT 1 FROM t1 WHERE a <> (SELECT GEOMETRYCOLLECTIONFROMWKB(b) FROM t1);
+
+DROP TABLE t1;
+
+
--echo End of 5.0 tests