~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/subselect.h

[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

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);