summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-07-01 14:14:51 +0300
committerbell@sanja.is.com.ua <>2002-07-01 14:14:51 +0300
commit2cf620004e8a15c5d72a27377b536db2394a62d8 (patch)
treedf426008e76b78f3cb8ff349e13e07746cb6f44f /sql/item_strfunc.h
parent97d9936f5dcd985671b393ec84ab6438d929d17e (diff)
downloadmariadb-git-2cf620004e8a15c5d72a27377b536db2394a62d8.tar.gz
subselect in having clause
fixed bug in sum function in subselect
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index a273abaf614..6e15b8317d1 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -79,10 +79,10 @@ public:
String *val_str(String *);
void fix_length_and_dec();
void update_used_tables();
- bool fix_fields(THD *thd,struct st_table_list *tlist)
+ bool fix_fields(THD *thd, TABLE_LIST *tlist, Item **ref)
{
- return (separator->fix_fields(thd,tlist)
- || Item_func::fix_fields(thd,tlist));
+ return (separator->fix_fields(thd, tlist, &separator)
+ || Item_func::fix_fields(thd, tlist, ref));
}
const char *func_name() const { return "concat_ws"; }
};
@@ -325,9 +325,10 @@ public:
double val();
longlong val_int();
String *val_str(String *str);
- bool fix_fields(THD *thd,struct st_table_list *tlist)
+ bool fix_fields(THD *thd, TABLE_LIST *tlist, Item **ref)
{
- return (item->fix_fields(thd,tlist) || Item_func::fix_fields(thd,tlist));
+ return (item->fix_fields(thd, tlist, &item) ||
+ Item_func::fix_fields(thd, tlist, ref));
}
void fix_length_and_dec();
void update_used_tables();
@@ -344,9 +345,10 @@ public:
Item_func_make_set(Item *a,List<Item> &list) :Item_str_func(list),item(a) {}
~Item_func_make_set() { delete item; }
String *val_str(String *str);
- bool fix_fields(THD *thd,struct st_table_list *tlist)
+ bool fix_fields(THD *thd, TABLE_LIST *tlist, Item **ref)
{
- return (item->fix_fields(thd,tlist) || Item_func::fix_fields(thd,tlist));
+ return (item->fix_fields(thd, tlist, &item) ||
+ Item_func::fix_fields(thd, tlist, ref));
}
void fix_length_and_dec();
void update_used_tables();