• igor@rurik.mysql.com's avatar
    Fixed bug #14927. · 7977a0c8
    igor@rurik.mysql.com authored
    A query with a group by and having clauses could return a wrong
    result set if the having condition contained a constant conjunct 
    evaluated to FALSE.
    It happened because the pushdown condition for table with
    grouping columns lost its constant conjuncts.
    Pushdown conditions are always built by the function make_cond_for_table
    that ignores constant conjuncts. This is apparently not correct when
    constant false conjuncts are present.
    7977a0c8
sql_prepare.cc 57.7 KB