mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merging 4.1 to 5.0
Build-tools/Do-compile: Auto merged client/Makefile.am: Auto merged client/mysqladmin.cc: Auto merged configure.in: Auto merged ndb/src/common/util/version.c: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/ha_ndbcluster.h: Auto merged ndb/src/mgmsrv/main.cpp: Resolved NDB conflict between 4.1 and 5.0
This commit is contained in:
@ -7288,6 +7288,7 @@ int my_wildcmp_uca(CHARSET_INFO *cs,
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
my_bool escaped= 0;
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <= 0)
|
||||
return 1;
|
||||
@ -7305,6 +7306,7 @@ int my_wildcmp_uca(CHARSET_INFO *cs,
|
||||
(const uchar*)wildend)) <= 0)
|
||||
return 1;
|
||||
wildstr+= scan;
|
||||
escaped= 1;
|
||||
}
|
||||
|
||||
if ((scan= mb_wc(cs, &s_wc, (const uchar*)str,
|
||||
@ -7312,7 +7314,7 @@ int my_wildcmp_uca(CHARSET_INFO *cs,
|
||||
return 1;
|
||||
str+= scan;
|
||||
|
||||
if (w_wc == (my_wc_t)w_one)
|
||||
if (!escaped && w_wc == (my_wc_t)w_one)
|
||||
{
|
||||
result= 1; /* Found an anchor char */
|
||||
}
|
||||
|
@ -1545,31 +1545,33 @@ int my_wildcmp_unicode(CHARSET_INFO *cs,
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
my_bool escaped= 0;
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <= 0)
|
||||
return 1;
|
||||
|
||||
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 (w_wc == (my_wc_t)w_many)
|
||||
{
|
||||
result= 1; /* Found an anchor char */
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
wildstr+= scan;
|
||||
if (w_wc == (my_wc_t)escape)
|
||||
{
|
||||
if ((scan= mb_wc(cs, &w_wc, (const uchar*)wildstr,
|
||||
(const uchar*)wildend)) <= 0)
|
||||
return 1;
|
||||
wildstr+= scan;
|
||||
escaped= 1;
|
||||
}
|
||||
|
||||
if ((scan= mb_wc(cs, &s_wc, (const uchar*)str,
|
||||
(const uchar*)str_end)) <=0)
|
||||
(const uchar*)str_end)) <= 0)
|
||||
return 1;
|
||||
str+= scan;
|
||||
|
||||
if (w_wc == (my_wc_t)w_one)
|
||||
if (!escaped && w_wc == (my_wc_t)w_one)
|
||||
{
|
||||
result= 1; /* Found an anchor char */
|
||||
}
|
||||
|
@ -269,7 +269,7 @@ int main(int ac, char **av)
|
||||
*/
|
||||
int tmp= weight[i];
|
||||
if (w == 2 && tmp)
|
||||
tmp= (int)(0x100 - weight[i]);
|
||||
tmp= (int)(0x20 - weight[i]);
|
||||
|
||||
|
||||
printf("0x%04X", tmp);
|
||||
@ -304,7 +304,7 @@ int main(int ac, char **av)
|
||||
const char *comma= page < MY_UCA_NPAGES-1 ? "," : "";
|
||||
const char *nline= (page+1) % 4 ? "" : "\n";
|
||||
if (!pagemaxlen[page])
|
||||
printf("NULL %s%s", comma , nline);
|
||||
printf("NULL %s%s%s", w ? " ": "", comma , nline);
|
||||
else
|
||||
printf("page%03Xdata%s%s%s", page, pname[w], comma, nline);
|
||||
}
|
||||
|
Reference in New Issue
Block a user