mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02: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:
parent
2a2ef1a192
commit
87c200d17c
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue