• unknown's avatar
    Bug#15728: LAST_INSERT_ID function inside a stored function returns 0 · 10eac46a
    unknown authored
    Do not reset value of LAST_INSERT_ID() in sub-statement.
    
    
    mysql-test/r/rpl_insert_id.result:
      Add result for bug#15728.
    mysql-test/r/sp.result:
      Add result for bug#15728.
    mysql-test/t/rpl_insert_id.test:
      Add test case for bug#15728.
    mysql-test/t/sp.test:
      Add test case for bug#15728.
    sql/sql_class.cc:
      Do not reset value of LAST_INSERT_ID() in sub-statement.
    10eac46a
rpl_insert_id.test 3.62 KB