summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-28 20:52:06 +0200
committerSergei Golubchik <serg@mariadb.org>2018-03-30 09:45:04 +0200
commitc43a0e0a77246585fd99961110fbd9570acebf9b (patch)
tree8d30828a7b58480d337294fbe4d9063d8f7225d4 /sql/item.h
parent7601331140200b778e31748d994017940fbc1bfd (diff)
downloadmariadb-git-c43a0e0a77246585fd99961110fbd9570acebf9b.tar.gz
bugfix: Item_cache_temporal::convert_to_basic_const_item assumed DATETIME
this is a 10.3 version of 1c6f6dc8924
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index d2789d40664..fcbfdfa1a02 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -6169,6 +6169,7 @@ public:
*/
Item *clone_item(THD *thd);
Item *convert_to_basic_const_item(THD *thd);
+ virtual Item *make_literal(THD *) =0;
};
@@ -6180,6 +6181,7 @@ public:
bool cache_value();
Item *get_copy(THD *thd)
{ return get_item_copy<Item_cache_time>(thd, this); }
+ Item *make_literal(THD *);
};
@@ -6190,6 +6192,7 @@ public:
:Item_cache_temporal(thd, &type_handler_datetime2) { }
Item *get_copy(THD *thd)
{ return get_item_copy<Item_cache_datetime>(thd, this); }
+ Item *make_literal(THD *);
};
@@ -6200,6 +6203,7 @@ public:
:Item_cache_temporal(thd, &type_handler_newdate) { }
Item *get_copy(THD *thd)
{ return get_item_copy<Item_cache_date>(thd, this); }
+ Item *make_literal(THD *);
};