summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2021-03-27 21:02:09 +0100
committerAnel Husakovic <anel@mariadb.org>2021-03-27 21:02:19 +0100
commit2fc76a50229ab29f6524dc08d21ab52b750b2918 (patch)
tree1eb725738bf7d4362dded0093681e42b10582034
parent5eda18f0cac6e6520cc1bbeec28c7c653da737df (diff)
downloadmariadb-git-bb-10.2-anel-MDEV-13467-gis-feature-v1.tar.gz
MDEV-13467: Feature request: Support for ST_Distance_Sphere()bb-10.2-anel-MDEV-13467-gis-feature-v1
- jump to label ‘handle_errors’ can enter to the scope of non-POD ‘Geometry_buffer buffer2’
-rw-r--r--sql/item_geofunc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc
index 83a9cabf7b2..0daf9da4a81 100644
--- a/sql/item_geofunc.cc
+++ b/sql/item_geofunc.cc
@@ -2549,7 +2549,7 @@ double Item_func_sphere_distance::val_real()
null_value= (args[0]->null_value || args[1]->null_value);
if (null_value)
{
- goto handle_errors;
+ return 0;
}
if (arg_count == 3)
@@ -2559,7 +2559,7 @@ double Item_func_sphere_distance::val_real()
if (args[2]->null_value)
{
null_value= true;
- goto handle_errors;
+ return 0;
}
if (sphere_radius <= 0)
{