mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user