mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-6956:SET STATEMENT default_master_connection = ... has no effect
the problem was in assigning default value during parsing.
This commit is contained in:
@ -2730,6 +2730,9 @@ mysql_execute_command(THD *thd)
|
||||
}
|
||||
}
|
||||
|
||||
if (thd->lex->mi.connection_name.str == NULL)
|
||||
thd->lex->mi.connection_name= thd->variables.default_master_connection;
|
||||
|
||||
/*
|
||||
Force statement logging for DDL commands to allow us to update
|
||||
privilege, system or statistic tables directly without the updates
|
||||
|
Reference in New Issue
Block a user