summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2023-04-05 15:42:27 +0400
committerAlexander Barkov <bar@mariadb.com>2023-04-05 16:16:19 +0400
commit62e137d4d739fcba6810a66242175230e8170727 (patch)
tree3d277e4400c735ff13f84870fd09d808b7311d8e /sql/table.cc
parentafdf19cf3303bf3797fe47e5cef398227134cc32 (diff)
parent06393cd8f81e6c9a01e9ae1c8783a7f6dac21fbd (diff)
downloadmariadb-git-62e137d4d739fcba6810a66242175230e8170727.tar.gz
Merge remote-tracking branch 'origin/10.4' into 10.5
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 1c13a244afd..0bd2148bdd5 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -9013,7 +9013,7 @@ bool TABLE::check_period_overlaps(const KEY &key,
return false;
uint kp_len= key.key_part[part_nr].length;
if (f->cmp_prefix(f->ptr_in_record(lhs), f->ptr_in_record(rhs),
- kp_len) != 0)
+ kp_len / f->charset()->mbmaxlen) != 0)
return false;
}