summaryrefslogtreecommitdiff
path: root/sql/time.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-02-14 11:47:41 +0200
committermonty@mashka.mysql.fi <>2003-02-14 11:47:41 +0200
commitacf8993439943a45b185b67bfdfad3de5079630e (patch)
tree2bcccee0d1ca3eede87c86ba444c18bb917dd8cd /sql/time.cc
parent3695c64111173ec5a04ca66e2ba036ccbea8c67d (diff)
downloadmariadb-git-acf8993439943a45b185b67bfdfad3de5079630e.tar.gz
Fixed problem when connecting to user without a password.
Fixed problem with LIKE and BINARY
Diffstat (limited to 'sql/time.cc')
-rw-r--r--sql/time.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/time.cc b/sql/time.cc
index 6b2f8b710da..94f9cb2e5e8 100644
--- a/sql/time.cc
+++ b/sql/time.cc
@@ -639,9 +639,11 @@ bool str_to_time(const char *str,uint length,TIME *l_time)
for (value=0; str != end && my_isdigit(&my_charset_latin1,*str) ; str++)
value=value*10L + (long) (*str - '0');
- if (*str == ' ')
+ /* Move to last space */
+ if (str != end && *str == ' ')
{
- while (++str != end && str[0] == ' ') ;
+ while (++str != end && str[0] == ' ')
+ {}
str--;
}