~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

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/session.h"
25
25
#include "drizzled/function/time/month.h"
26
26
 
 
27
namespace drizzled
 
28
{
 
29
 
27
30
int64_t Item_func_month::val_int()
28
31
{
29
32
  assert(fixed);
36
39
  }
37
40
 
38
41
  /* Grab the first argument as a DateTime object */
39
 
  drizzled::DateTime temporal;
 
42
  DateTime temporal;
40
43
  Item_result arg0_result_type= args[0]->result_type();
41
44
  
42
45
  switch (arg0_result_type)
114
117
  str->set(month_name, strlen(month_name), system_charset_info);
115
118
  return str;
116
119
}
 
120
 
 
121
} /* namespace drizzled */