• Nirbhay Choubey's avatar
    Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH · a8e6f7c6
    Nirbhay Choubey authored
                   ("-") IN DATABASE NAMES IN ALTER DATABASE.
    
    mysqldump did not quote database name in 'ALTER DATABASE'
    statements in its output. This can further cause a failure
    while loading if database name contains a hyphen '-'.
    
    This happened as, while printing the 'ALTER DATABASE'
    statements, the database name was not quoted.
    
    Fixed by quoting the database name.
    a8e6f7c6
mysqldump.c 157 KB