summaryrefslogtreecommitdiff
path: root/mysys/mf_casecnv.c
diff options
context:
space:
mode:
authorpeter@mysql.com <>2002-08-07 19:26:41 +0400
committerpeter@mysql.com <>2002-08-07 19:26:41 +0400
commit21cb8e76df4020bc5423ac2e3d856942e391962a (patch)
tree4637861168435bd66ecfe4458102fa7dbdb5aed7 /mysys/mf_casecnv.c
parentc077119f47bbc1043f8f5fae0cbfc4926a105393 (diff)
downloadmariadb-git-21cb8e76df4020bc5423ac2e3d856942e391962a.tar.gz
Fix bug of running the queries with no selected database while running with --lower_case_table_names
Diffstat (limited to 'mysys/mf_casecnv.c')
-rw-r--r--mysys/mf_casecnv.c10
1 files changed, 8 insertions, 2 deletions
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 */