• Alexander Nozdrin's avatar
    Patch for Bug#12394306: the sever may crash if mysql.event is corrupted. · 16f26d2a
    Alexander Nozdrin authored
    The problem was that wrong structure of mysql.event was not detected and
    the server continued to use wrongly-structured data.
    
    The fix is to check the structure of mysql.event after opening before
    any use. That makes operations with events more strict -- some operations
    that might work before throw errors now. That seems to be Ok.
    
    Another side-effect of the patch is that if mysql.event is corrupted,
    unrelated DROP DATABASE statements issue an SQL warning about inability
    to open mysql.event table. 
    16f26d2a
events_restart.test 3.89 KB