~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/period_add.cc

Merged remove-dead-find_field_in_table_sef into remove-dead-Item-save_in_field_no_warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
#include CSTDINT_H
 
21
 
22
22
#include "drizzled/function/time/period_add.h"
23
23
#include "drizzled/calendar.h"
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
int64_t Item_func_period_add::val_int()
26
29
{
27
30
  assert(fixed == 1);
34
37
 
35
38
  return (int64_t) months_to_year_month(year_month_to_months(period) + months);
36
39
}
 
40
 
 
41
} /* namespace drizzled */