• bell@sanja.is.com.ua's avatar
    Fix for BUG#13549 "Server crash with nested stored procedures · 2bcd6897
    bell@sanja.is.com.ua authored
    if inner routine has more local variables than outer one, and
    one of its last variables was used as argument to NOT operator".
    
    THD::spcont was non-0 when we were parsing stored routine/trigger
    definition during execution of another stored routine. This confused
    methods of Item_splocal and forced them use wrong runtime context.
    Fix ensures that we always have THD::spcont equal to zero during
    routine/trigger body parsing. This also allows to avoid problems
    with errors which occur during parsing and SQL exception handlers.
    2bcd6897
sql_yacc.yy 232 KB