summaryrefslogtreecommitdiff
path: root/mysql-test/r
diff options
context:
space:
mode:
authorVenkata Sidagam <venkata.sidagam@oracle.com>2013-12-19 16:08:38 +0530
committerVenkata Sidagam <venkata.sidagam@oracle.com>2013-12-19 16:08:38 +0530
commit0fb30122ca6a6e95f63e82e4253d7bb816fc95aa (patch)
tree3e4e1e4f3f6867622ed70607ff48ed4cc79fadf4 /mysql-test/r
parent6ad10c8f4a931911d8f7885a95271ada97ba3fd8 (diff)
downloadmariadb-git-0fb30122ca6a6e95f63e82e4253d7bb816fc95aa.tar.gz
Bug #17780290 PUBLISH THE GIS TEST FOR BUG#16451878
Adding the test cases for the BUG#16451878.
Diffstat (limited to 'mysql-test/r')
-rw-r--r--mysql-test/r/gis.result21
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result
index 46a36ad8276..89b9d97b85b 100644
--- a/mysql-test/r/gis.result
+++ b/mysql-test/r/gis.result
@@ -1113,4 +1113,25 @@ SELECT 1 FROM g1 WHERE a >= ANY
(SELECT 1 FROM g1 WHERE a = geomfromtext('') OR a) ;
1
DROP TABLE g1;
+#
+# Bug#16451878 GEOMETRY QUERY CRASHES SERVER
+#
+# should not crash
+SELECT ASTEXT(0x0100000000030000000100000000000010);
+ASTEXT(0x0100000000030000000100000000000010)
+NULL
+#should not crash
+SELECT ENVELOPE(0x0100000000030000000100000000000010);
+ENVELOPE(0x0100000000030000000100000000000010)
+NULL
+#should not crash
+SELECT
+GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffff0000, 1);
+GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffff0000, 1)
+NULL
+#should not crash
+SELECT
+GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1);
+GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1)
+NULL
End of 5.5 tests