summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-07-31 16:58:02 +0400
committerAlexander Barkov <bar@mariadb.com>2018-07-31 16:58:02 +0400
commitb1ae4e7e154b9b1ffb87918a8646173e1f8063fe (patch)
treeb40a3a79675dd7dab40c40b800f37a2be0099954 /sql/item_create.cc
parent2bbee0e1ecc1d71cc7ca890d70e101a69955e5d9 (diff)
downloadmariadb-git-b1ae4e7e154b9b1ffb87918a8646173e1f8063fe.tar.gz
MDEV-16864 Implement class Item_func_timestamp
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 80cb830c584..d9b007d4728 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -3636,7 +3636,7 @@ Create_func_addtime Create_func_addtime::s_singleton;
Item*
Create_func_addtime::create_2_arg(THD *thd, Item *arg1, Item *arg2)
{
- return new (thd->mem_root) Item_func_add_time(thd, arg1, arg2, 0, 0);
+ return new (thd->mem_root) Item_func_add_time(thd, arg1, arg2, false);
}
@@ -6657,7 +6657,7 @@ Create_func_subtime Create_func_subtime::s_singleton;
Item*
Create_func_subtime::create_2_arg(THD *thd, Item *arg1, Item *arg2)
{
- return new (thd->mem_root) Item_func_add_time(thd, arg1, arg2, 0, 1);
+ return new (thd->mem_root) Item_func_add_time(thd, arg1, arg2, true);
}