mirror of
https://github.com/MariaDB/server.git
synced 2025-07-18 23:03:28 +03:00
Merge branch bb-10.2-release into bb-10.3-release
This commit is contained in:
@ -4276,8 +4276,10 @@ bool Prepared_statement::prepare(const char *packet, uint packet_len)
|
||||
thd->release_transactional_locks();
|
||||
}
|
||||
|
||||
/* Preserve CHANGE MASTER attributes */
|
||||
lex_end_stage1(lex);
|
||||
/* Preserve locked plugins for SET */
|
||||
if (lex->sql_command != SQLCOM_SET_OPTION)
|
||||
lex_unlock_plugins(lex);
|
||||
|
||||
cleanup_stmt();
|
||||
thd->restore_backup_statement(this, &stmt_backup);
|
||||
thd->stmt_arena= old_stmt_arena;
|
||||
@ -5159,7 +5161,7 @@ void Prepared_statement::deallocate_immediate()
|
||||
status_var_increment(thd->status_var.com_stmt_close);
|
||||
|
||||
/* It should now be safe to reset CHANGE MASTER parameters */
|
||||
lex_end_stage2(lex);
|
||||
lex_end(lex);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user