Fix bug of running the queries with no selected database while running with --lower_case_table_names

mysys/mf_casecnv.c:
  Fix writing to string which is possible to be "" constant
This commit is contained in:
unknown 2002-08-07 19:26:41 +04:00
parent 956d11450a
commit b7b90430c4

View file

@ -45,8 +45,11 @@ void caseup_str(my_string str)
}
else
#endif
while ((*str = toupper(*str)) != 0)
while (*str!=0) /* iterate till the end of string */
{
*str= toupper(*str);
str++;
}
} /* caseup_str */
/* string to lowercase */
@ -66,8 +69,11 @@ void casedn_str(my_string str)
}
else
#endif
while ((*str= tolower(*str)) != 0)
while (*str!=0) /* iterate till the end of string */
{
*str= tolower(*str);
str++;
}
} /* casedn_str */