• aelkin@mysql.com's avatar
    Bug#19136: Crashing log-bin and uninitialized user variables in a derived table · 8c57924a
    aelkin@mysql.com authored
    The reason of the bug is in that `get_var_with_binlog' performs missed
    assingment of
    the variables as side-effect. Doing that it eventually calls
    `free_underlaid_joins' to pass as an argument `thd->lex->select_lex' of the lex
    which belongs to the user query, not 
    to one which is emulated i.e SET @var1:=NULL.
    
    
    `get_var_with_binlog' is refined to supply a temporary lex to sql_set_variables's stack.
    8c57924a
rpl_user_variables.result 3.25 KB