• unknown's avatar
    A fix and a test case for Bug#14077 "Failure to replicate a stored · b6707610
    unknown authored
    function with a cursor". Enable execution of SELECT queries in SP on slave.
    
    
    mysql-test/r/rpl_sp.result:
      Test results were fixed (Bug#14077).
    mysql-test/t/rpl_sp.test:
      Add a test case for Bug#14077 "Failure to replicate a stored 
      function with a cursor".
    sql/sql_parse.cc:
      Do not rewrite SELECTs with DOs on slave: if this SELECT was for a stored
      routine cursor, slave must be able to execute the SELECT in order to
      open a cursor.
      At the moment the bug is present only in stored functions and stored
      procedures called from stored functions, because, due to
      stored procedure unfolding for replication, top level stored procedures
      are never executed on slave.
    b6707610
sql_parse.cc 221 KB