summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-11-07 15:03:58 +0400
committerAlexander Barkov <bar@mariadb.org>2017-11-07 15:03:58 +0400
commitfff7fc500b3ab0ead49685cbd1310d5b2dfa0972 (patch)
treef9a9af9b7f146c6b1678039e6ecff35a9eab3727 /sql/item_func.h
parent8128ae48eff6029d29d6c1c509f04994614a0571 (diff)
downloadmariadb-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.h7
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;