~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/year.h

Merged Nathan from lp:~nlws/drizzle/fix-string-c-ptr-overrun

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTIONS_TIME_YEAR_H
21
 
#define DRIZZLED_FUNCTIONS_TIME_YEAR_H
 
20
#ifndef DRIZZLED_FUNCTION_TIME_YEAR_H
 
21
#define DRIZZLED_FUNCTION_TIME_YEAR_H
22
22
 
23
 
#include <drizzled/functions/int.h>
 
23
#include <drizzled/function/math/int.h>
24
24
 
25
25
class Item_func_year :public Item_int_func
26
26
{
28
28
  Item_func_year(Item *a) :Item_int_func(a) {}
29
29
  int64_t val_int();
30
30
  const char *func_name() const { return "year"; }
31
 
  enum_monotonicity_info get_monotonicity_info() const;
32
31
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
33
32
  void fix_length_and_dec()
34
33
  {
38
37
  }
39
38
};
40
39
 
41
 
#endif /* DRIZZLED_FUNCTIONS_TIME_YEAR_H */
 
40
#endif /* DRIZZLED_FUNCTION_TIME_YEAR_H */