1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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.
This commit is contained in:
dkatz@damien-katzs-computer.local
2007-06-13 16:24:21 -04:00
parent 13adcedc90
commit 471173c57c
3 changed files with 30 additions and 1 deletions

View File

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