• Alexander Barkov's avatar
    A safety patch for MDEV-9217 Split Item::tmp_table_field_from_field_type()... · 6cc40856
    Alexander Barkov authored
    A safety patch for MDEV-9217 Split Item::tmp_table_field_from_field_type() into virtual methods in Type_handler
    
    During refactoring in Type_handler, it's safer to use new_Field_xxx
    in Type_handler_xxx2::make_table_field(), to avoid creations of wrong
    fields for fields of the TIME(0), DATETIME(0) and TIMESTAMP(0) types.
    This will be changed back to "new" when we finish refactoring and
    reuse Type_handler::make_table_field() in make_field() in field.cc.
    6cc40856
sql_type.cc 114 KB