Skip to content

Commit

Permalink
MDEV-13467: Feature request: Support for ST_Distance_Sphere()
Browse files Browse the repository at this point in the history
- jump to label ‘handle_errors’ can enter to the scope of non-POD
  ‘Geometry_buffer buffer2’
  • Loading branch information
an3l committed Mar 27, 2021
1 parent 5eda18f commit 2fc76a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/item_geofunc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand Down

0 comments on commit 2fc76a5

Please sign in to comment.