• Dmitry Shulga's avatar
    Fixed bug#11764334 (formerly bug#57156): ALTER EVENT CHANGES · 1cc304e3
    Dmitry Shulga authored
    THE EVENT STATUS.
    
    Any ALTER EVENT statement on a disabled event enabled it back
    (unless this ALTER EVENT statement explicitly disabled the event).
    
    The problem was that during processing of an ALTER EVENT statement
    value of status field was overwritten unconditionally even if new
    value was not specified explicitly. As a consequence this field
    was set to default value for status which corresponds to ENABLE.
    
    The solution is to check if status field was explicitly specified in
    ALTER EVENT statement before assigning new value to status field.
    1cc304e3
events_bugs.test 41.8 KB