• Monty's avatar
    Reset thd->lex->current_select for SP · 6b7dcefd
    Monty authored
    current_select may point to data from old parser states
    when calling a stored procedure with CALL
    
    The failure happens in Item::Item when testing if we are
    in having.
    
    Fixed by explicitely reseting current_select in do_execute_sp()
    and in sp_rcontext::create(). The later is also needed for
    stored functions().
    6b7dcefd
sql_parse.cc 312 KB