[MDEV-19972] Move GIS code from Item_bool_func::get_full_func_mm_tree() to Item_func_spatial_rel::get_mm_leaf() Created: 2019-07-05 Updated: 2019-07-05 Resolved: 2019-07-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, GIS |
| Fix Version/s: | 10.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Item_bool_func::get_full_func_mm_tree() has the following code blocks:
and
This code here prevents moving GIS implementation into a data type plugin. The server code should at the end know nothing about Field_geom and type_handler_geometry. Let's move this code inside Item_func_spatial_rel::get_mm_leaf(), so the Field_geom's type handler is changed just before the call for save_in_field_no_warnings() and restore it immediately after this. The new code in Item_func_spatial_rel::get_mm_leaf() will look like this:
|