diff options
author | unknown <serg@serg.mysql.com> | 2003-01-26 20:01:45 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-01-26 20:01:45 +0100 |
commit | dc87247df4c18ffc1b1052c6798add910678c631 (patch) | |
tree | df50eb7cf98c0be08e8b273f68ff68a337e0a9b8 /sql/item_cmpfunc.h | |
parent | 433307fafb1bc315a4e92c995f50d052c8d5eb36 (diff) | |
download | mariadb-git-dc87247df4c18ffc1b1052c6798add910678c631.tar.gz |
making the keyword ROW for row items optional
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 19 |
1 files changed, 3 insertions, 16 deletions
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<Item> &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(); - } }; |