1
0
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:
Oleksandr Byelkin
2015-02-25 21:29:13 +01:00
parent e91bc2e91d
commit dab12366b1
9 changed files with 124 additions and 11 deletions

View File

@ -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