Commit e76a3321 authored by guilhem@mysql.com's avatar guilhem@mysql.com

Fix for BUG#4066 "DROP DATABASE case sensitive even if lower-case-table-names > 0"

parent 7fb04c4f
...@@ -2387,7 +2387,8 @@ mysql_execute_command(void) ...@@ -2387,7 +2387,8 @@ mysql_execute_command(void)
send_error(&thd->net,ER_LOCK_OR_ACTIVE_TRANSACTION); send_error(&thd->net,ER_LOCK_OR_ACTIVE_TRANSACTION);
goto error; goto error;
} }
res=mysql_rm_db(thd,alias,lex->drop_if_exists,0); res=mysql_rm_db(thd,(lower_case_table_names == 2 ? alias : lex->name),
lex->drop_if_exists,0);
break; break;
} }
case SQLCOM_CREATE_FUNCTION: case SQLCOM_CREATE_FUNCTION:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment