summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-04-14 21:27:33 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-14 21:27:33 +0400
commit64e63131f83ee70b2d0176323ad320ee76edff78 (patch)
treef72af5b6a9310753e072c88d54b6416c7cd4f79c /sql
parent45730fb11e08571bbe4023cd7a7e8d1168ceb008 (diff)
downloadmariadb-git-64e63131f83ee70b2d0176323ad320ee76edff78.tar.gz
Moving implementation of Item_hybrid_func::fix_attributes() from item_cmpfunc.cc to item_func.cc
Diffstat (limited to 'sql')
-rw-r--r--sql/item_cmpfunc.cc8
-rw-r--r--sql/item_func.cc9
2 files changed, 9 insertions, 8 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index f5ba6f206c2..6d2135db91e 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -3315,14 +3315,6 @@ my_decimal *Item_func_coalesce::decimal_op(my_decimal *decimal_value)
}
-bool Item_hybrid_func::fix_attributes(Item **items, uint nitems)
-{
- bool rc= Item_hybrid_func::type_handler()->
- Item_hybrid_func_fix_attributes(current_thd, this, items, nitems);
- DBUG_ASSERT(!rc || current_thd->is_error());
- return rc;
-}
-
/****************************************************************************
Classes and function for the IN operator
****************************************************************************/
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 03d0b1068a2..a52c2609412 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -543,6 +543,15 @@ my_decimal *Item_func::val_decimal(my_decimal *decimal_value)
}
+bool Item_hybrid_func::fix_attributes(Item **items, uint nitems)
+{
+ bool rc= Item_hybrid_func::type_handler()->
+ Item_hybrid_func_fix_attributes(current_thd, this, items, nitems);
+ DBUG_ASSERT(!rc || current_thd->is_error());
+ return rc;
+}
+
+
String *Item_real_func::val_str(String *str)
{
DBUG_ASSERT(fixed == 1);