• gshchepa/uchum@gleb.loc's avatar
    Fixed bug #29251. · f8bf427b
    gshchepa/uchum@gleb.loc authored
    Sometimes special 0 ENUM values was ALTERed to normal
    empty string ENUM values.
    
    Special 0 ENUM value has the same string representation
    as normal ENUM value defined as '' (empty string).
    The do_field_string function was used to convert
    ENUM data at an ALTER TABLE request, but this
    function doesn't care about numerical "indices" of
    ENUM values, i.e. do_field_string doesn't distinguish
    a special 0 value from an empty string value.
    
    A new copy function called do_field_enum has been added to
    copy special 0 ENUM values without conversion to an empty
    string.
    f8bf427b
field_conv.cc 17 KB