• Alexander Barkov's avatar
    A cleanup for MDEV-10914 ROW data type for stored routine variables · fcf631ea
    Alexander Barkov authored
    Changing datatypes for:
    - Item_spvar_args::m_table
    - sp_rcontext::m_var_table
    - return value of create_virtual_tmp_table()
    from TABLE* to Virtual_tmp_table*
    
    Advantages:
    - Stricter data type control
    - Removing the duplicate code (a loop with free_blobs)
      from destructors ~sp_rcontext() and ~Item_spvar_args(),
      using "delete m_(var_)table" in both instead.
    - Using Virtual_tmp_table::delete makes the code call Field::delete,
      which calls TRASH() for the freed fields,
      which is good for valgrind test runs.
    fcf631ea
sql_select.h 76.8 KB