~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common_includes.h

  • Committer: Monty Taylor
  • Date: 2008-10-23 06:29:32 UTC
  • mto: This revision was merged to the branch mainline in revision 557.
  • Revision ID: monty@inaugust.com-20081023062932-d4zxq466vtrfs4jk
Moved some bitmap defines into bitmap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
  QT_IS
112
112
};
113
113
 
114
 
/** 
115
 
 * @TODO convert all these three maps to Bitmap classes 
116
 
 *
117
 
 * @TODO Move these to a more appropriate header file (maps.h?).  The following files use them:
118
 
 *
119
 
 *    item_sum.h
120
 
 *    item_compfunc.h
121
 
 *    item.h
122
 
 *    table.h
123
 
 *    item_subselect.h
124
 
 *    sql_bitmap.h
125
 
 *    unireg.h (going bye bye?)
126
 
 *    sql_udf.h
127
 
 *    item_row.h
128
 
 *    handler.cc
129
 
 *    sql_insert.cc
130
 
 *    opt_range.h
131
 
 *    opt_sum.cc
132
 
 *    item_strfunc.h
133
 
 *    sql_delete.cc
134
 
 *    sql_select.h
135
 
 *
136
 
 *    Since most of these include table.h, I think that would appropriate...
137
 
 */
138
 
typedef uint64_t table_map;          /* Used for table bits in join */
139
 
#if MAX_INDEXES <= 64
140
 
typedef Bitmap<64>  key_map;          /* Used for finding keys */
141
 
#else
142
 
typedef Bitmap<((MAX_INDEXES+7)/8*8)> key_map; /* Used for finding keys */
143
 
#endif
144
 
typedef uint32_t nesting_map;  /* Used for flags of nesting constructs */
145
 
 
146
 
/*
147
 
  Used to identify NESTED_JOIN structures within a join (applicable only to
148
 
  structures that have not been simplified away and embed more the one
149
 
  element)
150
 
*/
151
 
typedef uint64_t nested_join_map; /* Needed by sql_select.h and table.h */
152
 
 
153
 
/* useful constants */#
154
 
extern const key_map key_map_empty;
155
 
extern key_map key_map_full;          /* Should be threaded as const */
156
 
extern const char *primary_key_name;
157
114
 
158
115
/**
159
116
 * @TODO Move the following into a drizzled.h header?
162
119
 * and that are used only in the server should be separated out into 
163
120
 * a drizzled.h header file -- JRP
164
121
 */
165
 
typedef uint64_t query_id_t;
166
122
extern query_id_t global_query_id;
167
123
 
168
124
/* increment query_id and return it.  */