Commit 5a90f24c authored by Venkata Sidagam's avatar Venkata Sidagam

Bug #17780290 PUBLISH THE GIS TEST FOR BUG#16451878

      
Adding the test cases for the BUG#16451878.
parent b430aaba
...@@ -1113,4 +1113,25 @@ SELECT 1 FROM g1 WHERE a >= ANY ...@@ -1113,4 +1113,25 @@ SELECT 1 FROM g1 WHERE a >= ANY
(SELECT 1 FROM g1 WHERE a = geomfromtext('') OR a) ; (SELECT 1 FROM g1 WHERE a = geomfromtext('') OR a) ;
1 1
DROP TABLE g1; 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 End of 5.5 tests
...@@ -868,4 +868,22 @@ SELECT 1 FROM g1 WHERE a >= ANY ...@@ -868,4 +868,22 @@ SELECT 1 FROM g1 WHERE a >= ANY
DROP TABLE g1; DROP TABLE g1;
--echo #
--echo # Bug#16451878 GEOMETRY QUERY CRASHES SERVER
--echo #
--echo # should not crash
SELECT ASTEXT(0x0100000000030000000100000000000010);
--echo #should not crash
SELECT ENVELOPE(0x0100000000030000000100000000000010);
--echo #should not crash
SELECT
GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffff0000, 1);
--echo #should not crash
SELECT
GEOMETRYN(0x0100000000070000000100000001030000000200000000000000ffffff0f, 1);
--echo End of 5.5 tests --echo End of 5.5 tests
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment