summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-01-14 21:23:00 +0100
committerSergei Golubchik <serg@mariadb.org>2017-01-15 00:12:16 +0100
commitb948b5f7c64c6430d98dc31b7e9f71d990b40ec1 (patch)
treeed698c6932c229d85d85c9cde10cdd218fec64d9 /sql/item_func.h
parent798fcb541698cbf51f1ee33f44b023c11dc2b784 (diff)
downloadmariadb-git-b948b5f7c64c6430d98dc31b7e9f71d990b40ec1.tar.gz
bugfix: Item_func_min_max stored thd internally
It was used for get_datetime_value() and for thd->is_error(). But in fact, get_datetime_value() never used thd argument, because the cache ptr argument was NULL. And thd->is_error() check was not needed at that place at all.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 0da38e22c7f..d60801745fe 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1068,7 +1068,6 @@ class Item_func_min_max :public Item_func
int cmp_sign;
/* An item used for issuing warnings while string to DATETIME conversion. */
Item *compare_as_dates;
- THD *thd;
protected:
enum_field_types cached_field_type;
public: