diff options
author | unknown <monty@mashka.mysql.fi> | 2003-02-14 11:47:41 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-02-14 11:47:41 +0200 |
commit | 5a12dff30bc694f8d0af923b0bd2a5b79912d2ca (patch) | |
tree | 2bcccee0d1ca3eede87c86ba444c18bb917dd8cd /sql/time.cc | |
parent | 86ec3c8f085c65b9ac2ef8776cad956465abddd7 (diff) | |
download | mariadb-git-5a12dff30bc694f8d0af923b0bd2a5b79912d2ca.tar.gz |
Fixed problem when connecting to user without a password.
Fixed problem with LIKE and BINARY
BitKeeper/etc/ignore:
added scripts/fill_help_tables
client/mysqltest.c:
Better error messages
libmysql/libmysql.c:
Simple code cleanup
Simplified connect() and change_user() by using sub function
libmysqld/lib_sql.cc:
Ensure that new fields in MYSQL_FIELD structure is used
mysql-test/r/rpl_user_variables.result:
Cleaned up test
mysql-test/r/type_blob.result:
New test
mysql-test/t/rpl_user_variables.test:
Cleaned up test
mysql-test/t/type_blob.test:
New test
sql/item.cc:
Fixed that Item_ref returns the right character set
sql/item_cmpfunc.cc:
Fixed problem with LIKE and BINARY
sql/item_func.cc:
Don't store end ASCII(0) for string user variables
(Made some other code easier)
sql/log_event.cc:
Don't store end ASCII(0) for string user variables.
Fixed comment style
Some optimizations
sql/log_event.h:
Optimized type
sql/mini_client.cc:
Indentation changes
sql/mysql_priv.h:
Made is_update_query extern
sql/protocol.cc:
Simple code cleanup
sql/sql_acl.cc:
Code cleanup
Fixed problem when connecting to user without a password.
sql/sql_lex.h:
Fixed problem with uninitialized memory
sql/sql_parse.cc:
Fixed problem with user without passwords
Fixed some connect problems.
sql/time.cc:
removed reference to uninitialized memory
Diffstat (limited to 'sql/time.cc')
-rw-r--r-- | sql/time.cc | 6 |
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--; } |