~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/discrete_interval.h

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_DISCRETE_INTERVAL_H
22
22
#define DRIZZLED_DISCRETE_INTERVAL_H
23
23
 
24
 
#include <cstdlib>
25
 
 
26
 
#include "drizzled/definitions.h"
27
 
 
28
 
namespace drizzled
29
 
{
30
 
 
31
24
/*
32
25
  Such interval is "discrete": it is the set of
33
26
  { auto_inc_interval_min + k * increment,
34
27
    0 <= k <= (auto_inc_interval_values-1) }
35
28
  Where "increment" is maintained separately by the user of this class (and is
36
29
  currently only session->variables.auto_increment_increment).
37
 
  It mustn't derive from memory::SqlAlloc, because SET INSERT_ID needs to
 
30
  It mustn't derive from Sql_alloc, because SET INSERT_ID needs to
38
31
  allocate memory which must stay allocated for use by the next statement.
39
32
*/
40
33
class Discrete_interval {
182
175
 
183
176
};
184
177
 
185
 
} /* namespace drizzled */
186
 
 
187
178
#endif /* DRIZZLED_DISCRETE_INTERVAL_H */