~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-13 15:08:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110813150814-x12xd0c230a9bgtb
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
 
148
148
namespace drizzled {
149
149
 
150
 
#define HA_END_SPACE_KEY 0
 
150
static const int HA_END_SPACE_KEY= 0;
151
151
 
152
152
/*
153
153
  Convert double value to #rows. Currently this does floor(), and we
2233
2233
            NOT_IN_IGNORE_THRESHOLD, construct the optimizer::SEL_TREE (*) manually.
2234
2234
          * Otherwise, don't produce a optimizer::SEL_TREE.
2235
2235
        */
2236
 
#define NOT_IN_IGNORE_THRESHOLD 1000
 
2236
        const unsigned int NOT_IN_IGNORE_THRESHOLD= 1000;
2237
2237
        memory::Root *tmp_root= param->mem_root;
2238
2238
        param->session->mem_root= param->old_root;
2239
2239
        /*
3184
3184
  return root;
3185
3185
}
3186
3186
 
3187
 
#define CLONE_KEY1_MAYBE 1
3188
 
#define CLONE_KEY2_MAYBE 2
 
3187
static const int CLONE_KEY1_MAYBE= 1;
 
3188
static const int CLONE_KEY2_MAYBE= 2;
3189
3189
 
3190
3190
static uint32_t swap_clone_flag(uint32_t a)
3191
3191
{