summaryrefslogtreecommitdiff
path: root/sql/item_geofunc.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-03-31 08:01:03 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-03-31 08:01:03 +0300
commitd6d3d9ae2ffb1df8eebfe0c922394bbc7b12e4ed (patch)
tree341f053652cf1e93acf89180a0b072f7d43ef1e1 /sql/item_geofunc.h
parent96475b78c55141164ecf2719e000d189e4bcbc3d (diff)
parent99945d77d748470fbb3939be5f7d0e36d24d8097 (diff)
downloadmariadb-git-d6d3d9ae2ffb1df8eebfe0c922394bbc7b12e4ed.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/item_geofunc.h')
-rw-r--r--sql/item_geofunc.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sql/item_geofunc.h b/sql/item_geofunc.h
index 24bed6aa3ca..75545b8e4f3 100644
--- a/sql/item_geofunc.h
+++ b/sql/item_geofunc.h
@@ -2,7 +2,7 @@
#define ITEM_GEOFUNC_INCLUDED
/* Copyright (c) 2000, 2016 Oracle and/or its affiliates.
- Copyright (C) 2011, 2016, MariaDB
+ Copyright (C) 2011, 2021, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -934,6 +934,20 @@ public:
};
+class Item_func_sphere_distance: public Item_real_func
+{
+ double spherical_distance_points(Geometry *g1, Geometry *g2,
+ const double sphere_r);
+public:
+ Item_func_sphere_distance(THD *thd, List<Item> &list):
+ Item_real_func(thd, list) {}
+ double val_real();
+ const char *func_name() const { return "st_distance_sphere"; }
+ Item *get_copy(THD *thd)
+ { return get_item_copy<Item_func_sphere_distance>(thd, this); }
+};
+
+
class Item_func_pointonsurface: public Item_geometry_func_args_geometry
{
String tmp_value;