diff options
author | unknown <monty@donna.mysql.fi> | 2001-05-23 02:40:24 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-05-23 02:40:24 +0300 |
commit | 41dd2aa2b5a2f8b7a5d760bff26e8ceb2ce10fff (patch) | |
tree | 089c3177d314fd343965d105d3f57b5fe995b5a4 /sql/item.cc | |
parent | 82a404d9fb1e3d181033473183be2e48d9ee406a (diff) | |
download | mariadb-git-41dd2aa2b5a2f8b7a5d760bff26e8ceb2ce10fff.tar.gz |
Remove wrong access check for locks.
Fixed problem with fuzzy dates.
mysql-test/r/func_time.result:
Added test of fuzzy dates
mysql-test/t/func_time.test:
Added test of fuzzy dates
sql/item.cc:
Fixed bug with fuzzy dates
sql/sql_parse.cc:
Remove wrong access check for locks.
(This has to be delayed for 4.0 because there is currently now way
to check for "any of the following privileges"
Docs/manual.texi:
Changelog
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc index 10d1c6d0560..b268c5eb928 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -75,7 +75,7 @@ bool Item::get_date(TIME *ltime,bool fuzzydate) char buff[40]; String tmp(buff,sizeof(buff)),*res; if (!(res=val_str(&tmp)) || - str_to_TIME(res->ptr(),res->length(),ltime,0) == TIMESTAMP_NONE) + str_to_TIME(res->ptr(),res->length(),ltime,fuzzydate) == TIMESTAMP_NONE) { bzero((char*) ltime,sizeof(*ltime)); return 1; |