• unknown's avatar
    Fix for MDEV-4219 A simple select query returns random data (upstream bug#68473) · 66ec79fc
    unknown authored
      
    In the case of loose scan used as input for order by, end_send()
    didn't detect correctly that a loose scan was used, and didn't copy
    the non-aggregated fields from the temp table used for ORDER BY.
      
    The fix uses the fact that the quick select used for sorting is
    attached to JOIN::pre_sort_join_tab instead of JOIN::join_tab.
    66ec79fc
group_min_max.result 124 KB