• unknown's avatar
    Fix for BUG#2333 "ALTER DATABASE on inexistent database hangs the client": · e90eb6f4
    unknown authored
    mysql_alter_db() now returns -1 in case of error, so that mysql_execute_command()
    calls send_error().
    
    
    sql/sql_db.cc:
      In case of error, return -1 so that mysql_execute_command()
      understands that it must send_error().
      The double (( at the left of 'error' in the 'if' are to avoid a compiler warning.
    e90eb6f4
sql_db.cc 19.8 KB