mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Moved lower_case_table_name check to right place.
This commit is contained in:
parent
962042e76d
commit
446b9c0768
1 changed files with 2 additions and 3 deletions
|
|
@ -323,9 +323,6 @@ 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 */
|
||||
|
|
@ -338,6 +335,8 @@ bool mysql_change_db(THD *thd,const char *name)
|
|||
x_free(dbname);
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
if (lower_case_table_names)
|
||||
casedn_str(dbname);
|
||||
DBUG_PRINT("general",("Use database: %s", dbname));
|
||||
if (test_all_bits(thd->master_access,DB_ACLS))
|
||||
db_access=DB_ACLS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue