mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #28953 Using events in a replication let the slave crash.
Fixed where the slave code would try to update the Lex->sphead which is NULL on an "alter table" commands. mysql-test/r/rpl_events.result: test that "alter event" replicates without crashing the slave mysql-test/t/rpl_events.test: test that "alter event" replicates without crashing the slave sql/sql_parse.cc: Added a check for lex->spd, which isn't set on an "alter event" command
This commit is contained in:
@@ -1567,7 +1567,7 @@ bool sp_process_definer(THD *thd)
|
||||
if (lex->definer == NULL)
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
if (thd->slave_thread)
|
||||
if (thd->slave_thread && lex->sphead)
|
||||
lex->sphead->m_chistics->suid= SP_IS_NOT_SUID;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user