~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.h

  • Committer: Brian Aker
  • Date: 2009-02-07 22:02:41 UTC
  • Revision ID: brian@tangent.org-20090207220241-ez3828o1246ab2sp
Removing on typedeffed class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <drizzled/item/bin_string.h>
31
31
 
32
32
 
33
 
class st_select_lex;
 
33
class Select_Lex;
34
34
struct order_st;
35
35
 
36
36
/*
215
215
  and reports an error if it is illegal.
216
216
  The method register_sum_func serves to link the items for the set functions
217
217
  that are aggregated in the embedding (sub)queries. Circular chains of such
218
 
  functions are attached to the corresponding st_select_lex structures
 
218
  functions are attached to the corresponding Select_Lex structures
219
219
  through the field inner_sum_func_list.
220
220
 
221
221
  Exploiting the fact that the members mentioned above are used in one
242
242
  Item_sum *next; /* next in the circular chain of registered objects  */
243
243
  uint32_t arg_count;
244
244
  Item_sum *in_sum_func;  /* embedding set function if any */
245
 
  st_select_lex * aggr_sel; /* select where the function is aggregated       */
 
245
  Select_Lex * aggr_sel; /* select where the function is aggregated       */
246
246
  int8_t nest_level;        /* number of the nesting level of the set function */
247
247
  int8_t aggr_level;        /* nesting level of the aggregating subquery       */
248
248
  int8_t max_arg_level;     /* max level of unbound column references          */
381
381
  bool init_sum_func_check(Session *session);
382
382
  bool check_sum_func(Session *session, Item **ref);
383
383
  bool register_sum_func(Session *session, Item **ref);
384
 
  st_select_lex *depended_from()
 
384
  Select_Lex *depended_from()
385
385
    { return (nest_level == aggr_level ? 0 : aggr_sel); }
386
386
};
387
387