• Leonard Zhou's avatar
    BUG#39526 sql_mode not retained in binary log for CREATE PROCEDURE · 63c9bb32
    Leonard Zhou authored
          
    Set wrong sql_mode when creating a procedure. 
    So that the sql_mode can't be writen into binary log correctly.
          
    Restore the current session sql_mode right before generating the binlog event
    when creating a procedure.
    
    mysql-test/suite/binlog/r/binlog_sql_mode.result:
      Test result
    mysql-test/suite/binlog/t/binlog_sql_mode.test:
      Test file for sql_mode testing
    sql/sp.cc:
      Restore the current session sql_mode right before generating the binlog event.
    63c9bb32
binlog_sql_mode.result 1.07 KB