• Ming Lin's avatar
    MDEV-16768: fix blob key length · 87609324
    Ming Lin authored
    The blob key length could be shorter than the length of the entire blob,
    for example,
    
    CREATE TABLE t1 (b BLOB, i INT, KEY(b(8)));
    INSERT INTO t1 VALUES (REPEAT('a',9),1);
    
    The key length is 8, while the blob length is 9.
    So we need to set the correct key length in Field_blob::sort_string().
    87609324
field.cc 324 KB