Commit dfe65d32 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

Merge abarkov@build.mysql.com:/home/bk/mysql-4.1

into bar.mysql.r18.ru:/usr/home/bar/mysql-4.1
parents 1a8227d1 59f6e35c
...@@ -108,7 +108,7 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create) ...@@ -108,7 +108,7 @@ static bool load_db_opt(const char *path, HA_CREATE_INFO *create)
{ {
char *pos= buf+nbytes-1; char *pos= buf+nbytes-1;
/* Remove end space and control characters */ /* Remove end space and control characters */
while (pos > buf && !my_isgraph(system_charset_info, pos[-1])) while (pos > buf && !my_isgraph(&my_charset_latin1, pos[-1]))
pos--; pos--;
*pos=0; *pos=0;
if ((pos= strchr(buf, '='))) if ((pos= strchr(buf, '=')))
...@@ -414,8 +414,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db, ...@@ -414,8 +414,8 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
DBUG_PRINT("info",("Examining: %s", file->name)); DBUG_PRINT("info",("Examining: %s", file->name));
/* Check if file is a raid directory */ /* Check if file is a raid directory */
if (my_isdigit(system_charset_info,file->name[0]) && if (my_isdigit(&my_charset_latin1,file->name[0]) &&
my_isdigit(system_charset_info,file->name[1]) && my_isdigit(&my_charset_latin1,file->name[1]) &&
!file->name[2] && !level) !file->name[2] && !level)
{ {
char newpath[FN_REFLEN]; char newpath[FN_REFLEN];
...@@ -440,7 +440,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db, ...@@ -440,7 +440,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
continue; continue;
} }
strxmov(filePath,org_path,"/",file->name,NullS); strxmov(filePath,org_path,"/",file->name,NullS);
if (db && !my_strcasecmp(system_charset_info, if (db && !my_strcasecmp(&my_charset_latin1,
fn_ext(file->name), reg_ext)) fn_ext(file->name), reg_ext))
{ {
/* Drop the table nicely */ /* Drop the table nicely */
......
...@@ -912,7 +912,7 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg) ...@@ -912,7 +912,7 @@ extern "C" pthread_handler_decl(handle_bootstrap,arg)
while (fgets(buff, thd->net.max_packet, file)) while (fgets(buff, thd->net.max_packet, file))
{ {
uint length=(uint) strlen(buff); uint length=(uint) strlen(buff);
while (length && (my_isspace(system_charset_info, buff[length-1]) || while (length && (my_isspace(thd->charset(), buff[length-1]) ||
buff[length-1] == ';')) buff[length-1] == ';'))
length--; length--;
buff[length]=0; buff[length]=0;
...@@ -1265,7 +1265,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd, ...@@ -1265,7 +1265,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
ulong length= thd->query_length-(ulong)(thd->lex.found_colon-thd->query); ulong length= thd->query_length-(ulong)(thd->lex.found_colon-thd->query);
/* Remove garbage at start of query */ /* Remove garbage at start of query */
while (my_isspace(system_charset_info, *packet) && length > 0) while (my_isspace(thd->charset(), *packet) && length > 0)
{ {
packet++; packet++;
length--; length--;
...@@ -1539,14 +1539,14 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length) ...@@ -1539,14 +1539,14 @@ bool alloc_query(THD *thd, char *packet, ulong packet_length)
{ {
packet_length--; // Remove end null packet_length--; // Remove end null
/* Remove garbage at start and end of query */ /* Remove garbage at start and end of query */
while (my_isspace(system_charset_info,packet[0]) && packet_length > 0) while (my_isspace(thd->charset(),packet[0]) && packet_length > 0)
{ {
packet++; packet++;
packet_length--; packet_length--;
} }
char *pos=packet+packet_length; // Point at end null char *pos=packet+packet_length; // Point at end null
while (packet_length > 0 && while (packet_length > 0 &&
(pos[-1] == ';' || my_isspace(system_charset_info,pos[-1]))) (pos[-1] == ';' || my_isspace(thd->charset() ,pos[-1])))
{ {
pos--; pos--;
packet_length--; packet_length--;
......
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