From dc87247df4c18ffc1b1052c6798add910678c631 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 26 Jan 2003 20:01:45 +0100 Subject: making the keyword ROW for row items optional --- sql/item_cmpfunc.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'sql/item_cmpfunc.h') diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index 8641ab410b3..1bb85a9e233 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -267,27 +267,14 @@ public: class Item_func_interval :public Item_int_func { - Item *item; + Item_row *row; double *intervals; public: - Item_func_interval(Item *a,List &list) - :Item_int_func(list),item(a),intervals(0) {} + Item_func_interval(Item_row *a) + :Item_int_func(a),row(a),intervals(0) { allowed_arg_cols= a->cols(); } longlong val_int(); - bool fix_fields(THD *thd, struct st_table_list *tlist, Item **ref) - { - return (item->fix_fields(thd, tlist, &item) || item->check_cols(1) || - Item_func::fix_fields(thd, tlist, ref)); - } void fix_length_and_dec(); - ~Item_func_interval() { delete item; } const char *func_name() const { return "interval"; } - void update_used_tables(); - bool check_loop(uint id); - void set_outer_resolving() - { - item->set_outer_resolving(); - Item_func::set_outer_resolving(); - } }; -- cgit v1.2.1