~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_subselect.h

  • Committer: Stewart Smith
  • Date: 2008-09-15 07:13:59 UTC
  • mfrom: (383.1.21 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080915071359-f8bznznyaiqrtqxa
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
class Item_subselect :public Item_result_field
34
34
{
35
 
  my_bool value_assigned; /* value already assigned to subselect */
 
35
  bool value_assigned; /* value already assigned to subselect */
36
36
public:
37
37
  /* thread handler, will be assigned in fix_fields only */
38
38
  THD *thd;
292
292
  /* 
293
293
    Location of the subquery predicate. It is either
294
294
     - pointer to join nest if the subquery predicate is in the ON expression
295
 
     - (TABLE_LIST*)1 if the predicate is in the WHERE.
 
295
     - (TableList*)1 if the predicate is in the WHERE.
296
296
  */
297
 
  TABLE_LIST *expr_join_nest;
 
297
  TableList *expr_join_nest;
298
298
 
299
299
  /* The method chosen to execute the IN predicate.  */
300
300
  enum enum_exec_method {
444
444
  virtual void exclude()= 0;
445
445
  virtual bool may_be_null() { return maybe_null; };
446
446
  virtual table_map upper_select_const_tables()= 0;
447
 
  static table_map calc_const_tables(TABLE_LIST *);
 
447
  static table_map calc_const_tables(TableList *);
448
448
  virtual void print(String *str, enum_query_type query_type)= 0;
449
449
  virtual bool change_result(Item_subselect *si,
450
450
                             select_result_interceptor *result)= 0;
461
461
 
462
462
class subselect_single_select_engine: public subselect_engine
463
463
{
464
 
  my_bool prepared; /* simple subselect is prepared */
465
 
  my_bool optimized; /* simple subselect is optimized */
466
 
  my_bool executed; /* simple subselect is executed */
 
464
  bool prepared; /* simple subselect is prepared */
 
465
  bool optimized; /* simple subselect is optimized */
 
466
  bool executed; /* simple subselect is executed */
467
467
  st_select_lex *select_lex; /* corresponding select_lex */
468
468
  JOIN * join; /* corresponding JOIN structure */
469
469
public: