~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-09 19:18:36 UTC
  • mfrom: (923 drizzle)
  • mto: (934.3.2 mordred)
  • mto: This revision was merged to the branch mainline in revision 938.
  • Revision ID: osullivan.padraig@gmail.com-20090309191836-ixiam3xa55off3do
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
#include "drizzled/temporal.h" /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */
115
115
 
116
116
#include <string>
117
 
#include CMATH_H
118
117
 
119
118
using namespace std;
120
 
#if defined(CMATH_NAMESPACE)
121
 
using namespace CMATH_NAMESPACE;
122
 
#endif
123
119
 
124
120
/*
125
121
  Convert double value to #rows. Currently this does floor(), and we
126
122
  might consider using round() instead.
127
123
*/
128
 
#define double2rows(x) ((ha_rows)(x))
 
124
static inline ha_rows double2rows(double x)
 
125
{
 
126
    return static_cast<ha_rows>(x);
 
127
}
129
128
 
130
129
static int sel_cmp(Field *f,unsigned char *a,unsigned char *b,uint8_t a_flag,uint8_t b_flag);
131
130