• unknown's avatar
    fix for bug#16410 (Events: CREATE EVENT is legal in a CREATE TRIGGER statement) · 2557f80f
    unknown authored
    WL#1034 (Internal CRON)
    (post-post-review updates)
    
    
    
    mysql-test/r/events.result:
      update results file
    mysql-test/t/events.test:
      add test for Bug #16410  Events: CREATE EVENT is legal in a CREATE TRIGGER statement
    sql/sp_head.cc:
      CREATE/ALTER/DROP event mean explicit commit, so they are not allowed in
      a FUNCTION/TRIGGER. Fixes bug#16410
    sql/sql_parse.cc:
      - end active transaction for CREATE/ALTER/DROP EVENT because
        they are DDL statements.
    2557f80f
sql_parse.cc 218 KB