• unknown's avatar
    Fix for bug #19736 VIEW: column names not quoted properly when view is replicated · bc9f9011
    unknown authored
    When we write 'query=...' string to a frm file for views on a slave, 
    indentifiers are not properly quoted due to missing OPTION_QUOTE_SHOW_CREATE 
    flag in the thd->options.
    
    Fix: properly set thd->options for the slave thread.
    
    
    mysql-test/r/rpl_view.result:
      Fix for bug #19736 VIEW: column names not quoted properly when view is replicated
        - result adjusted.
    sql/slave.cc:
      Fix for bug #19736 VIEW: column names not quoted properly when view is replicated
        - properly set thd->options only in one place (in the set_slave_thread_options()),
          using thd_startup_options. As a side effect we have OPTION_BIG_SELECTS flag set
          after the set_slave_thread_options() call from the 
          log_enevt.cc:Rotate_log_event::exec_event().
    bc9f9011
slave.cc 166 KB