• unknown's avatar
    Issuing error about presence of commit/rollback statements in stored functions... · 8a661e77
    unknown authored
    Issuing error about presence of commit/rollback statements in stored functions and triggers added to SP parsing procedure (BUG#13627)
    
    The crash mentioned in original bug report is already prevented by one
    of previous patches (fix for bug #13343 "CREATE|etc TRIGGER|VIEW|USER
    don't commit the transaction (inconsistency)"), this patch only improve
    error returning.
    
    
    mysql-test/r/sp-error.result:
      Test that statements which implicitly commit transaction
    mysql-test/t/sp-error.test:
      Test that statements which implicitly commit transaction
    sql/sp_head.cc:
      We set the new flag about commit/rollback statements presence
    sql/sp_head.h:
      The new flag about commit/rollback presence added
      A comment fixed
    sql/sql_yacc.yy:
      Removed commit/rollback-statement-present errors spread by this file, only one check left which check flags of a SP
    8a661e77
sp-error.test 32.2 KB