~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "config.h"
21
 
 
 
21
#include CSTDINT_H
22
22
#include "drizzled/function/time/to_days.h"
23
23
#include "drizzled/error.h"
24
24
#include "drizzled/temporal.h"
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
/* 
30
27
 * We intepret the first argument as a DateTime and then convert
31
28
 * it to a Julian Day Number and return it.
51
48
   * error and return 0, setting the null_value flag to true.
52
49
   */
53
50
  /* Grab the first argument as a DateTime object */
54
 
  DateTime temporal;
 
51
  drizzled::DateTime temporal;
55
52
  Item_result arg0_result_type= args[0]->result_type();
56
53
  
57
54
  switch (arg0_result_type)
143
140
   * the appropriate end-point integer.
144
141
   */
145
142
  /* Grab the first argument as a DateTime object */
146
 
  DateTime temporal;
 
143
  drizzled::DateTime temporal;
147
144
  Item_result arg0_result_type= args[0]->result_type();
148
145
  
149
146
  switch (arg0_result_type)
256
253
    *incl_endp= true;
257
254
  return julian_day_number;
258
255
}
259
 
 
260
 
} /* namespace drizzled */