• Igor Babaev's avatar
    Fixed LP bug #802845. · d4e9da31
    Igor Babaev authored
    If the expression for a derived table contained a clause LIMIT 0
    SELECT from such derived table incorrectly returned a non-empty set.
    
    Fixed by ensuring JOIN::do_send_rows to be updated after the call
    of st_select_lex_unit::set_limit that sets the value of 
    JOIN::unit->select_limit_cnt.
    d4e9da31
sql_select.cc 691 KB