• unknown's avatar
    fix for bug #16426 · d576ca18
    unknown authored
    Events: Event-caused statements don't appear in the slow query log
    WL#1034
    
    
    sql/event_executor.cc:
      enable slow logging
    sql/event_timed.cc:
      enable slow logging for the anonymous SP
    sql/sp_head.cc:
      allow thd->enable_slow_log to be TRUE if only
      m_flags & sp_head::LOG_SLOW_STATEMENTS
      Because usually enable_slow_log is 1 in user mode, this second
      check is needed backup the mode otherwise.
    sql/sp_head.h:
      add a new constant for slow queries. SP by default does not log slow queries in the
      body just the whole CALL could be considered as slow if taking too much time and
      called directly from the user
    sql/sql_parse.cc:
      let us see in the the trace log
    d576ca18
events_slow_query-master.opt 19 Bytes