diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-08-04 17:24:15 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-08-04 17:24:15 +0200 |
commit | 48b5777ebda9bf14c60ad05298dac67933e9799f (patch) | |
tree | 2c023b5cc7811faea8a9b4ad82998e4624c29068 /sql/key.cc | |
parent | bbd70fcc43cc889e4593594ee5ca436fe1433aac (diff) | |
parent | 9a156e1a23046ba3e37bdb1e4e1ad887d3f5829b (diff) | |
download | mariadb-git-48b5777ebda9bf14c60ad05298dac67933e9799f.tar.gz |
Merge branch '10.4' into 10.5
Diffstat (limited to 'sql/key.cc')
-rw-r--r-- | sql/key.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/key.cc b/sql/key.cc index 0f2af60f9e3..8701d7b8053 100644 --- a/sql/key.cc +++ b/sql/key.cc @@ -229,7 +229,7 @@ void key_restore(uchar *to_record, const uchar *from_key, KEY *key_info, { /* This in fact never happens, as we have only partial BLOB - keys yet anyway, so it's difficult to find any sence to + keys yet anyway, so it's difficult to find any sense to restore the part of a record. Maybe this branch is to be removed, but now we have to ignore GCov compaining. @@ -611,8 +611,8 @@ int key_rec_cmp(void *key_p, uchar *first_rec, uchar *second_rec) max length. The exceptions are the BLOB and VARCHAR field types that take the max length into account. */ - if ((result= field->cmp_max(field->ptr+first_diff, field->ptr+sec_diff, - key_part->length))) + if ((result= field->cmp_prefix(field->ptr+first_diff, field->ptr+sec_diff, + key_part->length))) DBUG_RETURN(result); next_loop: key_part++; |