mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/usr/home/bar/mysql-4.1.b11754
into mysql.com:/usr/home/bar/mysql-5.0 mysql-test/r/ctype_utf8.result: Auto merged mysql-test/t/ctype_utf8.test: Auto merged strings/ctype-utf8.c: Auto merged
This commit is contained in:
@ -1739,7 +1739,7 @@ int my_wildcmp_unicode(CHARSET_INFO *cs,
|
||||
}
|
||||
|
||||
wildstr+= scan;
|
||||
if (w_wc == (my_wc_t)escape)
|
||||
if (w_wc == (my_wc_t)escape && wildstr < wildend)
|
||||
{
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <= 0)
|
||||
@ -1811,13 +1811,17 @@ int my_wildcmp_unicode(CHARSET_INFO *cs,
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <=0)
|
||||
return 1;
|
||||
wildstr+= scan;
|
||||
|
||||
if (w_wc == (my_wc_t)escape)
|
||||
{
|
||||
wildstr+= scan;
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <=0)
|
||||
return 1;
|
||||
if (wildstr < wildend)
|
||||
{
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <=0)
|
||||
return 1;
|
||||
wildstr+= scan;
|
||||
}
|
||||
}
|
||||
|
||||
while (1)
|
||||
@ -1843,14 +1847,12 @@ int my_wildcmp_unicode(CHARSET_INFO *cs,
|
||||
if (str == str_end)
|
||||
return -1;
|
||||
|
||||
str+= scan;
|
||||
result= my_wildcmp_unicode(cs, str, str_end, wildstr, wildend,
|
||||
escape, w_one, w_many,
|
||||
weights);
|
||||
|
||||
if (result <= 0)
|
||||
return result;
|
||||
|
||||
str+= scan;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user