• Nirbhay Choubey's avatar
    Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH · 876502d7
    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.
    
    
    client/mysqldump.c:
      Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH
                     ("-") IN DATABASE NAMES IN ALTER DATABASE.
      
      Modified the print statement in order to print the quoted
      database name for 'ALTER DATABASE' statements.
    mysql-test/r/mysqldump.result:
      Added a test case for bug#11766310.
    mysql-test/t/mysqldump.test:
      Added a test case for bug#11766310.
    876502d7
mysqldump.c 157 KB