~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: lbieber at stabletransit
  • Date: 2010-10-18 20:26:50 UTC
  • mfrom: (1859.1.4 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101018202650-hcvsp7yuaf1xy04s
Merge Monty - Adds support for a const std::string sys_var type.
Merge Monty - Make it possible to use sys_var directly from plugins.
Merge Padraig - Replaced a few unit8_t types that were being used as bitmaps with std::bitset

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
#define MY_CHARSET_BIN_MB_MAXLEN 1
220
220
 
221
221
// uncachable cause
222
 
#define UNCACHEABLE_DEPENDENT   1
223
 
#define UNCACHEABLE_RAND        2
224
 
#define UNCACHEABLE_SIDEEFFECT  4
 
222
static const uint32_t UNCACHEABLE_DEPENDENT= 1;
 
223
static const uint32_t UNCACHEABLE_RAND= 2;
 
224
static const uint32_t UNCACHEABLE_SIDEEFFECT= 3;
225
225
/// forcing to save JOIN for explain
226
 
#define UNCACHEABLE_EXPLAIN     8
 
226
static const uint32_t UNCACHEABLE_EXPLAIN= 4;
227
227
/** Don't evaluate subqueries in prepare even if they're not correlated */
228
 
#define UNCACHEABLE_PREPARE    16
 
228
static const uint32_t UNCACHEABLE_PREPARE= 5;
229
229
/* For uncorrelated SELECT in an UNION with some correlated SELECTs */
230
 
#define UNCACHEABLE_UNITED     32
 
230
static const uint32_t UNCACHEABLE_UNITED= 6;
231
231
 
232
232
/* Used to check GROUP BY list in the MODE_ONLY_FULL_GROUP_BY mode */
233
233
#define UNDEF_POS (-1)
234
234
 
235
235
/* Options to add_table_to_list() */
236
 
#define TL_OPTION_UPDATING      1
237
 
#define TL_OPTION_FORCE_INDEX   2
238
 
#define TL_OPTION_IGNORE_LEAVES 4
239
 
#define TL_OPTION_ALIAS         8
 
236
static const uint32_t TL_OPTION_UPDATING= 0;
 
237
static const uint32_t TL_OPTION_FORCE_INDEX= 1;
 
238
static const uint32_t TL_OPTION_IGNORE_LEAVES= 2;
 
239
static const uint32_t TL_OPTION_ALIAS= 3;
 
240
static const uint32_t NUM_OF_TABLE_OPTIONS= 4;
240
241
 
241
242
/* Some portable defines */
242
243