• Igor Babaev's avatar
    Fixed LP bug #702322. · 633dbc3b
    Igor Babaev authored
    The bug was a result of the fix for bug 668644 that turned out to be
    not quite correct. A problem appeared with HAVING conditions containing
    more than one predicate. If a query with an ORDER BY clause uses
    such HAVING condition and the required order can be obtained with
    a range/index scan then the HAVING condition has to be pushed into
    two different formulas (items). To be able to do it we have to create
    a copy of the ANDOR structure of the pushed condition.
     
    633dbc3b
innodb_mysql.result 75.4 KB