• Sergei Golubchik's avatar
    MDEV-29954 Unique hash key on column prefix is computed incorrectly · a7ee3bc5
    Sergei Golubchik authored
    use the original, not the truncated, field in the long unique prefix,
    that is, in the hash(left(field, length)) expression.
    
    because MyISAM CHECK/REPAIR in compute_vcols() moves table->field
    but not prefix fields from keyparts.
    
    Also, implement Field_string::cmp_prefix() for prefix comparison
    of CHAR columns to work.
    a7ee3bc5
key.cc 26.4 KB