• Varun Gupta's avatar
    MDEV-22852: SIGSEGV in sortlength (optimized builds) · fbfb5b5f
    Varun Gupta authored
    The issue here is for a DEPENDENT subquery that has an aggregate function in the ORDER BY clause,
    is wrapped inside an Item_aggregate_ref. For computation of ORDER BY we need to refer to the
    temp table field corresponding to this item. But in the function make_sortorder, we were
    explicitly casting Item_aggrgate_ref to Item_sum, which leads to us not getting the temp
    table field corresponding to the item.
    fbfb5b5f
subselect4.test 63.6 KB