diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-11-30 18:38:44 +0200 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-11-30 18:38:44 +0200 |
commit | 50e61c5175846ebcc72e15444b20995234270ee3 (patch) | |
tree | ecdcdc76ebb039cd85dc7270371846cbf9836648 /sql/item_cmpfunc.h | |
parent | 7dc2b70f4960b201e0edfb8b92a565d71053acf4 (diff) | |
download | mariadb-git-50e61c5175846ebcc72e15444b20995234270ee3.tar.gz |
a fix for a bug with HAVING sum_func IN (...)
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index e7c598808e8..72d4e06e39c 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -410,6 +410,7 @@ class Item_func_in :public Item_int_func longlong val_int(); bool fix_fields(THD *thd,struct st_table_list *tlist) { + with_sum_func= with_sum_func || item->with_sum_func; return (item->fix_fields(thd,tlist) || Item_func::fix_fields(thd,tlist)); } void fix_length_and_dec(); @@ -421,6 +422,7 @@ class Item_func_in :public Item_int_func enum Functype functype() const { return IN_FUNC; } const char *func_name() const { return " IN "; } void update_used_tables(); + void split_sum_func(List<Item> &fields); }; |