• Tatiana A. Nurnberg's avatar
    Bug#43508: Renaming timestamp or date column triggers table copy · aa9fa97e
    Tatiana A. Nurnberg authored
    We set up DATE and TIMESTAMP differently in field-creation than we
    did in field-MD creation (for CREATE). Admirably, ALTER TABLE
    detected this and didn't damage any data, but it did initiate a
    full copy/conversion, which we don't really need to do.
    
    Now we describe Field and Create_field the same for those types.
    As a result, ALTER TABLE that only changes meta-data (like a
    field's name) no longer forces a data-copy when there needn't
    be one.
    aa9fa97e
alter_table.test 26.5 KB