Commit 2fc76a50 authored by Anel Husakovic's avatar Anel Husakovic

MDEV-13467: Feature request: Support for ST_Distance_Sphere()

- jump to label ‘handle_errors’ can enter to the scope of non-POD
  ‘Geometry_buffer buffer2’
parent 5eda18f0
...@@ -2549,7 +2549,7 @@ double Item_func_sphere_distance::val_real() ...@@ -2549,7 +2549,7 @@ double Item_func_sphere_distance::val_real()
null_value= (args[0]->null_value || args[1]->null_value); null_value= (args[0]->null_value || args[1]->null_value);
if (null_value) if (null_value)
{ {
goto handle_errors; return 0;
} }
if (arg_count == 3) if (arg_count == 3)
...@@ -2559,7 +2559,7 @@ double Item_func_sphere_distance::val_real() ...@@ -2559,7 +2559,7 @@ double Item_func_sphere_distance::val_real()
if (args[2]->null_value) if (args[2]->null_value)
{ {
null_value= true; null_value= true;
goto handle_errors; return 0;
} }
if (sphere_radius <= 0) if (sphere_radius <= 0)
{ {
......
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