• Nirbhay Choubey's avatar
    Bug#13639125 DELIMITER STRIPS THE NEXT NEW LINE · fc2ad0af
    Nirbhay Choubey authored
                 IN A SQL STATEMENT
    
    While processing each lines entered at the prompt,
    mysql client appends a '\n' to all the lines except
    for delimiter commands. However the same logic must
    not apply if 'delimiter' is part of a string or a
    comment, for which a '\n' should be added.
    
    Fixed by adding appropriate checks.
    
    Added a test case.
    fc2ad0af
mysql.cc 140 KB