summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis-rtree.test
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-09-29 17:57:16 +0500
committerholyfoot/hf@mysql.com/deer.(none) <>2006-09-29 17:57:16 +0500
commit348e3570ce0aa0252247f971683fa5d25e606865 (patch)
tree390cac59044c1e4ae0fd58ccc2d1221426147e4f /mysql-test/t/gis-rtree.test
parent903387afc00fbc367aefbc32f973ea3b52d85fd9 (diff)
parent8190b7231b14a4d8773730405edeb7fb07784650 (diff)
downloadmariadb-git-348e3570ce0aa0252247f971683fa5d25e606865.tar.gz
Merge mysql.com:/home/hf/work/21888/my41-21888
into mysql.com:/home/hf/work/21888/my50-21888
Diffstat (limited to 'mysql-test/t/gis-rtree.test')
-rw-r--r--mysql-test/t/gis-rtree.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/gis-rtree.test b/mysql-test/t/gis-rtree.test
index 163f2806ad2..09cdcb2435e 100644
--- a/mysql-test/t/gis-rtree.test
+++ b/mysql-test/t/gis-rtree.test
@@ -231,4 +231,14 @@ INSERT INTO t1 (c1) VALUES (
CHECK TABLE t1 EXTENDED;
DROP TABLE t1;
+#
+# Bug #21888: Query on GEOMETRY field using PointFromWKB() results in lost connection
+#
+CREATE TABLE t1 (foo GEOMETRY NOT NULL, SPATIAL INDEX(foo) );
+INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(1,1)));
+INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(1,0)));
+INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(0,1)));
+INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(0,0)));
+SELECT 1 FROM t1 WHERE foo != PointFromWKB(POINT(0,0));
+DROP TABLE t1;
# End of 4.1 tests