• Igor Babaev's avatar
    Fixed LP bug #702322. · 6e08befd
    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.
     
    6e08befd
sql_select.cc 652 KB