• Monty's avatar
    Remove some usage of Check_level_instant_set and Sql_mode_save · 08bc062e
    Monty authored
    The reason for the removal are:
    - Generates more code
      - Storing and retreving THD
      - Causes extra code and daata to be generated to handle possible throw
        exceptions (which never happens in MariaDB code)
    - Uses more stack space
    
    Other things:
    - Changed convert_const_to_int() to use item->save_in_field_no_warnings(),
      which made the code shorter and simpler.
    - Removed not needed code in Sp_handler::sp_create_routine()
    - Added thd as argument to store_key.copy() to make function simpler
    - Added thd as argument to some subselect* constructor that inherites
      from Item_subselect.
    08bc062e
sql_select.h 84.7 KB