• Igor Babaev's avatar
    MDEV-20411 Procedure containing CTE incorrectly stored in mysql.proc · 12c80df4
    Igor Babaev authored
    If the first token of the body of a stored procedure was 'WITH' then
    the beginning of the body was determined incorrectly and that token was
    missing in the string representing the body of the SP in mysql.proc. As a
    resultnany call of such procedure failed as the string representing the
    body could not be parsed.
    
    The patch corrects the code of the functions get_tok_start() and
    get_cpp_tok_start() of the class Lex_input_stream to make them take into
    account look ahead tokens. The patch is needed only for 10.2 as this
    problem has neen resolved in 10.3+.
    12c80df4
cte_nonrecursive.test 38.9 KB