Commit 87c200d1 authored by unknown's avatar unknown

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


sql/sql_parse.cc:
  honour lower_case_table_names in DROP DATABASE (like we already do in CREATE DATABASE)
parent 2a2ef1a1
......@@ -2387,7 +2387,8 @@ mysql_execute_command(void)
send_error(&thd->net,ER_LOCK_OR_ACTIVE_TRANSACTION);
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;
}
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