• unknown's avatar
    Bug#15728: LAST_INSERT_ID function inside a stored function returns 0 · dbb0513f
    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.
    dbb0513f
sql_class.cc 57.7 KB