From 21cb8e76df4020bc5423ac2e3d856942e391962a Mon Sep 17 00:00:00 2001 From: "peter@mysql.com" <> Date: Wed, 7 Aug 2002 19:26:41 +0400 Subject: Fix bug of running the queries with no selected database while running with --lower_case_table_names --- mysys/mf_casecnv.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mysys') diff --git a/mysys/mf_casecnv.c b/mysys/mf_casecnv.c index 0302688ad1f..1fae3aead32 100644 --- a/mysys/mf_casecnv.c +++ b/mysys/mf_casecnv.c @@ -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 */ -- cgit v1.2.1