Bug #17780290 PUBLISH THE GIS TEST FOR BUG#16451878

Adding the test cases for the BUG#16451878.
This commit is contained in:
Venkata Sidagam 2013-12-19 16:08:38 +05:30
parent b430aabae3
commit 5a90f24cae
2 changed files with 39 additions and 0 deletions

View file

@ -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

View file

@ -868,4 +868,22 @@ SELECT 1 FROM g1 WHERE a >= ANY
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