summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorunknown <igor@rurik.mysql.com>2006-06-22 00:08:32 -0700
committerunknown <igor@rurik.mysql.com>2006-06-22 00:08:32 -0700
commit2cec841b4c28c645599e48e9e8e9fad58c03173b (patch)
tree42e680c41b3150bea82fc0ef02f1cddfcac8c9a7 /strings
parentb6473f7d68a5f2edc7c83261de08742f08b0657b (diff)
downloadmariadb-git-2cec841b4c28c645599e48e9e8e9fad58c03173b.tar.gz
Post-merge fix.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-mb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c
index 9d7aad0ca05..36b52826486 100644
--- a/strings/ctype-mb.c
+++ b/strings/ctype-mb.c
@@ -536,12 +536,7 @@ my_bool my_like_range_mb(CHARSET_INFO *cs,
if (*ptr == escape && ptr+1 != end)
ptr++; /* Skip escape */
else if (*ptr == w_one || *ptr == w_many) /* '_' and '%' in SQL */
- {
- charlen= my_charpos(cs, min_org, min_str, res_length/cs->mbmaxlen);
-
- if (charlen < (uint) (min_str - min_org))
- min_str= min_org + charlen;
-
+ {
/*
Calculate length of keys:
'a\0\0... is the smallest possible string when we have space expand