summaryrefslogtreecommitdiff
path: root/mysql-test/r/gis.result
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/r/gis.result
parent1339fb17fef8d365bf0eba95ec73d00a21d8879a (diff)
parent19ffe2308542735bc37e070bbdf266281ea8156a (diff)
downloadmariadb-git-9a5a77eb68a35b3e806bb65f94ec9cd9ab9b1b5e.tar.gz
automerge
Diffstat (limited to 'mysql-test/r/gis.result')
-rw-r--r--mysql-test/r/gis.result12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result
index a3708d06a1c..b40ff6be160 100644
--- a/mysql-test/r/gis.result
+++ b/mysql-test/r/gis.result
@@ -972,6 +972,18 @@ select min(`col002`) from t1 union select `col002` from t1;
min(`col002`)
NULL
drop table t1;
+#
+# Bug #47780: crash when comparing GIS items from subquery
+#
+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)))'));
+# must not crash
+SELECT 1 FROM t1 WHERE a <> (SELECT GEOMETRYCOLLECTIONFROMWKB(b) FROM t1);
+1
+DROP TABLE t1;
End of 5.0 tests
create table t1 (f1 tinyint(1), f2 char(1), f3 varchar(1), f4 geometry, f5 datetime);
create view v1 as select * from t1;