• holyfoot/hf@mysql.com/hfmain.(none)'s avatar
    Bug #31155 gis types in union'd select cause crash. · 16db036d
    holyfoot/hf@mysql.com/hfmain.(none) authored
    We use get_geometry_type() call to decide the exact type
    of a geometry field to be created (POINT, POLYGON etc)
    Though this function was only implemented for few items.
    In the bug's case we need to call this function for the
    Item_sum instance, where it was not implemented, what is
    the reason of the crash.
    Fixed by implementing virtual Item::get_geometry_type(),
    so it can be called for any Item.
    16db036d
item_geofunc.cc 16.1 KB