mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Additional fix for bug#22369
mysql-test/t/events_bugs.test: let events_bugs not fail because of timing sql/sql_table.cc: if the db or name has been changed ALTER_RENAME, then fix table_list Solution by having the second table added in the parser to the list of used tables, won't work because checking of rights of merge tables goes over table_list->next_local and checks the rights, so we will fail there. sql/sql_yacc.yy: fix name - prevents ddd from correct working
This commit is contained in:
parent
1963159f70
commit
0a22a1b915
3 changed files with 11 additions and 2 deletions
|
|
@ -6527,6 +6527,15 @@ view_err:
|
|||
{
|
||||
if (! table)
|
||||
{
|
||||
if (new_name != table_name || new_db != db)
|
||||
{
|
||||
table_list->alias= new_name;
|
||||
table_list->table_name= new_name;
|
||||
table_list->table_name_length= strlen(new_name);
|
||||
table_list->db= new_db;
|
||||
table_list->db_length= strlen(new_db);
|
||||
}
|
||||
|
||||
VOID(pthread_mutex_unlock(&LOCK_open));
|
||||
if (! (table= open_ltable(thd, table_list, TL_WRITE_ALLOW_READ)))
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue