~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Brian Aker
  • Date: 2009-05-26 02:54:31 UTC
  • mfrom: (1022.2.34 mordred)
  • Revision ID: brian@gaz-20090526025431-hpjmsrr4j6nftuic
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
 
100
100
struct st_join_table;
101
101
 
102
 
typedef struct st_reginfo {             /* Extra info about reg */
 
102
struct RegInfo {                /* Extra info about reg */
103
103
  struct st_join_table *join_tab;       /* Used by SELECT() */
104
104
  enum thr_lock_type lock_type;         /* How database is used */
105
105
  bool not_exists_optimize;
106
106
  bool impossible_range;
107
 
} REGINFO;
108
 
 
 
107
  RegInfo()
 
108
    : join_tab(NULL), lock_type(TL_UNLOCK),
 
109
      not_exists_optimize(false), impossible_range(false) {}
 
110
  void reset()
 
111
  {
 
112
    join_tab= NULL;
 
113
    lock_type= TL_UNLOCK;
 
114
    not_exists_optimize= false;
 
115
    impossible_range= false;
 
116
  }
 
117
};
109
118
 
110
119
struct st_read_record;                          /* For referense later */
111
120
class SQL_SELECT;