mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
Fix for a bug with mysql_select_db() on manually created
database and lower case table names.
This commit is contained in:
parent
49162e0e54
commit
0bc6909f02
1 changed files with 3 additions and 0 deletions
|
|
@ -323,6 +323,9 @@ bool mysql_change_db(THD *thd,const char *name)
|
|||
uint db_access;
|
||||
DBUG_ENTER("mysql_change_db");
|
||||
|
||||
if (lower_case_table_names)
|
||||
casedn_str(dbname);
|
||||
|
||||
if (!dbname || !(length=strip_sp(dbname)))
|
||||
{
|
||||
x_free(dbname); /* purecov: inspected */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue