• Igor Babaev's avatar
    Fixed LP bug #802845. · 55165f51
    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.
    55165f51
derived_view.test 11.2 KB