diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-11-07 15:03:58 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-11-07 15:03:58 +0400 |
commit | fff7fc500b3ab0ead49685cbd1310d5b2dfa0972 (patch) | |
tree | f9a9af9b7f146c6b1678039e6ecff35a9eab3727 /sql/item_func.h | |
parent | 8128ae48eff6029d29d6c1c509f04994614a0571 (diff) | |
download | mariadb-git-fff7fc500b3ab0ead49685cbd1310d5b2dfa0972.tar.gz |
MDEV-10817 CAST(MAX(DATE'2001-01-01') AS TIME) returns a wrong result
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index bee6dc4e524..ef703456818 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -2367,6 +2367,13 @@ public: return sp_result_field->val_decimal(dec_buf); } + bool get_date(MYSQL_TIME *ltime, ulonglong fuzzydate) + { + if (execute()) + return true; + return sp_result_field->get_date(ltime, fuzzydate); + } + String *val_str(String *str) { String buf; |