• Monty's avatar
    MDEV-30240 Wrong result upon aggregate function with SQL_BUFFER_RESULT · d0603fc5
    Monty authored
    The problem was that when storing rows into a temporary table,
    MIN/MAX items that where marked as constants (as theire value had
    been computed at start of query) would be reset.
    
    Fixed by not reseting MIN/MAX items that are marked as const in
    Item_sum_min_max::clear().
    d0603fc5
group_min_max.test 73.5 KB