• Dmitry Shulga's avatar
    MDEV-15703: Crash in EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 (a INT... · 6b2cd786
    Dmitry Shulga authored
    MDEV-15703: Crash in EXECUTE IMMEDIATE 'CREATE OR REPLACE TABLE t1 (a INT DEFAULT ?)' USING DEFAULT, UBSAN runtime error: member call on null pointer of type 'struct TABLE_LIST' in Item_param::save_in_field
    
    This is the prerequisite patch to refactor the method
      Item_default_value::fix_fields.
    The former implementation of this method was extracted and placed
    into the standalone function make_default_field() and the method
    Item_default_value::tie_field(). The motivation for this modification
    is upcoming changes for core implementation of the task MDEV-15703
    since these functions will be used from several places within
    the source code.
    6b2cd786
item.cc 299 KB