mirror of https://github.com/MariaDB/server
Browse Source
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().
pull/800/merge
committed by
Sergei Petrunia
3 changed files with 27 additions and 1 deletions
Loading…
Reference in new issue