• Alexander Barkov's avatar
    MDEV-8239 Reverse spatial operations OP(const, field) do not get optimized · 55d8ee5f
    Alexander Barkov authored
    Moving Item_func_spatial_rel from Item_bool_func to Item_bool_func2.
    to make OP(const,field) use indexes.
    - MBR functions supported OP(const,field) optimization in 10.0,
    but were inintentionally broken in an earlier 10.1 change that introduced
    a common parent for Item_func_spatial_mbr_rel and Item_func_spatial_precise_rel.
    - Precise functions never supported optimization for OP(const,field).
    Now both MBR and precise functions support OP(const,field) optimization.
    55d8ee5f
gis-rtree.result 79.9 KB