summaryrefslogtreecommitdiff
path: root/mysql-test/main/gis.test
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-26 10:40:33 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-26 14:55:47 +0200
commit29633dc0c0c49f27ad3c9a405f4730fbfef4bbb0 (patch)
treec8dcf1fde1123e9f431ab13718d2bede75c68a86 /mysql-test/main/gis.test
parent5f296f3a181eb63b6112153c6d4f9186180e6c50 (diff)
parent278fbe61d847337712c0f802cc8e0db85bf58bd7 (diff)
downloadmariadb-git-29633dc0c0c49f27ad3c9a405f4730fbfef4bbb0.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'mysql-test/main/gis.test')
-rw-r--r--mysql-test/main/gis.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/main/gis.test b/mysql-test/main/gis.test
index bd8720799d1..6a1a02fe74d 100644
--- a/mysql-test/main/gis.test
+++ b/mysql-test/main/gis.test
@@ -3089,6 +3089,15 @@ SELECT IS_FREE_LOCK(POINT(1,1));
--error ER_ILLEGAL_PARAMETER_DATA_TYPE_FOR_OPERATION
SELECT IS_USED_LOCK(POINT(1,1));
+--echo #
+--echo # MDEV-26161 crash in Gis_point::calculate_haversine
+--echo #
+--error ER_CANT_CREATE_GEOMETRY_OBJECT
+select st_distance_sphere(x'01030000000400000004000000000000', multipoint(point(124,204)), 10);
+--error ER_CANT_CREATE_GEOMETRY_OBJECT
+select st_distance_sphere(x'010300000004000000040000', multipoint(point(124,204)), 10);
+--error ER_CANT_CREATE_GEOMETRY_OBJECT
+select st_distance_sphere(x'010300000001000000040000', multipoint(point(124,204)), 10);
--echo #
--echo # End of 10.3 tests