~shubhamsomani92/drizzle/trunk-bug-995739

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Continuous Integration
  • Date: 2013-03-07 03:15:07 UTC
  • mfrom: (2630.1.7 create-tmp-table)
  • Revision ID: ci@drizzle.org-20130307031507-bqgrashrp5m3fw8x
Merge lp:~stewart/drizzle/misc-cleanups Build: jenkins-Drizzle-Builder-175

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
namespace drizzled {
38
38
 
 
39
        /* Bits in form->status */
 
40
#define STATUS_NO_RECORD        (1+2)   /* Record isn't usably */
 
41
#define STATUS_GARBAGE          1
 
42
#define STATUS_NOT_FOUND        2       /* No record in database when needed */
 
43
#define STATUS_NO_PARENT        4       /* Parent record wasn't found */
 
44
#define STATUS_NULL_ROW         32      /* table->null_row is set */
 
45
 
 
46
 
 
47
class RegInfo
 
48
{
 
49
public:         /* Extra info about reg */
 
50
  JoinTable *join_tab;  /* Used by SELECT() */
 
51
  enum thr_lock_type lock_type;         /* How database is used */
 
52
  bool not_exists_optimize;
 
53
  bool impossible_range;
 
54
  RegInfo()
 
55
    : join_tab(NULL), lock_type(TL_UNLOCK),
 
56
      not_exists_optimize(false), impossible_range(false) {}
 
57
  void reset()
 
58
  {
 
59
    join_tab= NULL;
 
60
    lock_type= TL_UNLOCK;
 
61
    not_exists_optimize= false;
 
62
    impossible_range= false;
 
63
  }
 
64
};
 
65
 
39
66
/**
40
 
 * Class representing a set of records, either in a temporary, 
 
67
 * Class representing a set of records, either in a temporary,
41
68
 * normal, or derived table.
42
69
 */
43
 
class DRIZZLED_API Table 
 
70
class DRIZZLED_API Table
44
71
{
45
72
  Field **field; /**< Pointer to fields collection */
46
73