~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merge Monty

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/temporal.h"
23
23
#include "drizzled/error.h"
24
24
#include "drizzled/function/time/dayofmonth.h"
25
25
 
 
26
namespace drizzled
 
27
{
 
28
 
26
29
int64_t Item_func_dayofmonth::val_int()
27
30
{
28
31
  assert(fixed);
35
38
  }
36
39
 
37
40
  /* Grab the first argument as a DateTime object */
38
 
  drizzled::DateTime temporal;
 
41
  DateTime temporal;
39
42
  Item_result arg0_result_type= args[0]->result_type();
40
43
  
41
44
  switch (arg0_result_type)
88
91
  }
89
92
  return (int64_t) temporal.days();
90
93
}
 
94
 
 
95
} /* namespace drizzled */