mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
db_name can change case, so we need copy of it for case insensitive FS.
This commit is contained in:
parent
520927a7df
commit
84505e6e3a
1 changed files with 8 additions and 2 deletions
|
@ -3415,9 +3415,15 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
|
|||
it.rewind(); /* To get access to new elements in basis list */
|
||||
while ((db_name= it++))
|
||||
{
|
||||
/* db_name can be changed in make_table_list() func */
|
||||
LEX_STRING orig_db_name= *db_name;
|
||||
LEX_STRING orig_db_name;
|
||||
|
||||
/*
|
||||
db_name can be changed in make_table_list() func.
|
||||
We need copy of db_name because it can change case.
|
||||
*/
|
||||
if (!thd->make_lex_string(&orig_db_name, db_name->str,
|
||||
db_name->length, FALSE))
|
||||
goto err;
|
||||
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
||||
if (!(check_access(thd,SELECT_ACL, db_name->str,
|
||||
&thd->col_access, 0, 1, with_i_schema) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue