• holyfoot/hf@mysql.com/hfmain.(none)'s avatar
    Bug #32374 crash with filesort when selecting from federated table and view. · 3f51ff64
    holyfoot/hf@mysql.com/hfmain.(none) authored
    filesort() uses file->estimate_rows_upper_bound() call to allocate
    internal buffers. If this function returns a value smaller than
    a number of row that will be returned later in find_all_keys(),
    that can cause server crash.
    Fixed by implementing ha_federated::estimate_rows_upper_bound() to
    return maximum possible number of rows.
    Present estimation for FEDERATED always returns 0 if the linked to the VIEW.
    3f51ff64
ha_federated.cc 85.8 KB