diff options
author | unknown <ramil@mysql.com> | 2005-06-01 17:09:46 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-06-01 17:09:46 +0500 |
commit | 44af4dbdf12f32ee5cb2be6d747c02b32912bf06 (patch) | |
tree | e65fd2d7d6b7221768c75e55daf08aeae3361b68 /sql/item_timefunc.cc | |
parent | 3f7b0f708e046d0a5ffe0ef96c1f52471be7b397 (diff) | |
download | mariadb-git-44af4dbdf12f32ee5cb2be6d747c02b32912bf06.tar.gz |
A fix (bug #10568: Function 'LAST_DAY(date)' does not return NULL for invalid argument).
sql/item_timefunc.cc:
A fix (bug #10568: Function 'LAST_DAY(date)' does not return NULL for invalid argument).
Return error for partial dates as well.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 3b6ca48fadd..16882e56d88 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -3015,7 +3015,7 @@ String *Item_func_str_to_date::val_str(String *str) bool Item_func_last_day::get_date(TIME *ltime, uint fuzzy_date) { - if (get_arg0_date(ltime,fuzzy_date)) + if (get_arg0_date(ltime, fuzzy_date & ~TIME_FUZZY_DATE)) return 1; uint month_idx= ltime->month-1; ltime->day= days_in_month[month_idx]; |