diff options
author | unknown <monty@mashka.mysql.fi> | 2002-12-21 10:57:53 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-12-21 10:57:53 +0200 |
commit | a3c5ad17472db208c676bbcb59a41fd7fe12b078 (patch) | |
tree | 97ea484b1af02d82effc0cfe272b2f21aa05f308 /sql | |
parent | 5f1b9717c53f19ef4f7a5206f59a7678a025dbe2 (diff) | |
download | mariadb-git-a3c5ad17472db208c676bbcb59a41fd7fe12b078.tar.gz |
Moved lower_case_table_name check to right place.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_db.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 338d3161bd4..0be1b7b0411 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -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; |