• unknown's avatar
    WL#1567: Add ROW_COUNT() Function to retrieve count of rows updated/inserted/deleted · 57029ca4
    unknown authored
    
    mysql-test/r/sp.result:
      New test cases for function ROW_COUNT().
    mysql-test/t/sp.test:
      New test cases for function ROW_COUNT().
    sql/item_func.cc:
      New Item_func_row_count.
    sql/item_func.h:
      New Item_func_row_count.
    sql/lex.h:
      New symbol for function ROW_COUNT().
    sql/sql_class.h:
      New slot in THD for storing the row_count after insert, delete and update.
    sql/sql_delete.cc:
      Set thd->row_count_func when deleting.
    sql/sql_insert.cc:
      Set thd->row_count_func when inserting.
    sql/sql_parse.cc:
      Stored procedure CALLs send the row count from the last insert, delete or update.
    sql/sql_update.cc:
      Set thd->row_count_func when updating.
    sql/sql_yacc.yy:
      New function ROW_COUNT().
    57029ca4
sql_update.cc 31.2 KB