Commit f1eb3309 authored by igor@rurik.mysql.com's avatar igor@rurik.mysql.com

Post-merge fix.

parent 85f0e50a
...@@ -536,12 +536,7 @@ my_bool my_like_range_mb(CHARSET_INFO *cs, ...@@ -536,12 +536,7 @@ my_bool my_like_range_mb(CHARSET_INFO *cs,
if (*ptr == escape && ptr+1 != end) if (*ptr == escape && ptr+1 != end)
ptr++; /* Skip escape */ ptr++; /* Skip escape */
else if (*ptr == w_one || *ptr == w_many) /* '_' and '%' in SQL */ 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: Calculate length of keys:
'a\0\0... is the smallest possible string when we have space expand 'a\0\0... is the smallest possible string when we have space expand
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment