~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/subselect.h

  • Committer: Brian Aker
  • Date: 2010-09-09 21:45:53 UTC
  • mto: (1756.1.2 build) (1768.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1757.
  • Revision ID: brian@tangent.org-20100909214553-e687rmf5zk9478on
Force unique to just use memory and let the OS handle paging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "drizzled/item/ref.h"
28
28
#include "drizzled/item/field.h"
29
29
#include "drizzled/item/bin_string.h"
30
 
#include "drizzled/util/test.h"
31
30
 
32
31
namespace drizzled
33
32
{
430
429
    res_field_type= DRIZZLE_TYPE_VARCHAR;
431
430
    maybe_null= 0;
432
431
  }
433
 
  virtual ~subselect_engine() {} // to satisfy compiler
 
432
  virtual ~subselect_engine() {}; // to satisfy compiler
434
433
  virtual void cleanup()= 0;
435
434
 
436
435
  /*
463
462
  */
464
463
  virtual int exec()= 0;
465
464
  virtual uint32_t cols()= 0; /* return number of columns in select */
466
 
  virtual bool uncacheable()= 0; /* query is uncacheable */
467
 
  virtual bool uncacheable(uint32_t bit_pos)= 0; /* query is uncacheable */
 
465
  virtual uint8_t uncacheable()= 0; /* query is uncacheable */
468
466
  enum Item_result type() { return res_type; }
469
467
  enum_field_types field_type() { return res_field_type; }
470
468
  virtual void exclude()= 0;
471
 
  virtual bool may_be_null() { return maybe_null; }
 
469
  virtual bool may_be_null() { return maybe_null; };
472
470
  virtual table_map upper_select_const_tables()= 0;
473
471
  static table_map calc_const_tables(TableList *);
474
472
  virtual void print(String *str, enum_query_type query_type)= 0;
501
499
  void fix_length_and_dec(Item_cache** row);
502
500
  int exec();
503
501
  uint32_t cols();
504
 
  bool uncacheable();
505
 
  bool uncacheable(uint32_t bit_pos);
 
502
  uint8_t uncacheable();
506
503
  void exclude();
507
504
  table_map upper_select_const_tables();
508
505
  virtual void print (String *str, enum_query_type query_type);
530
527
  void fix_length_and_dec(Item_cache** row);
531
528
  int exec();
532
529
  uint32_t cols();
533
 
  bool uncacheable();
534
 
  bool uncacheable(uint32_t bit_pos);
 
530
  uint8_t uncacheable();
535
531
  void exclude();
536
532
  table_map upper_select_const_tables();
537
533
  virtual void print (String *str, enum_query_type query_type);
588
584
  void fix_length_and_dec(Item_cache** row);
589
585
  int exec();
590
586
  uint32_t cols() { return 1; }
591
 
  bool uncacheable() { return true; }
592
 
  bool uncacheable(uint32_t) { return true; }
 
587
  uint8_t uncacheable() { return UNCACHEABLE_DEPENDENT; }
593
588
  void exclude();
594
589
  table_map upper_select_const_tables() { return 0; }
595
590
  virtual void print (String *str, enum_query_type query_type);