~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/date.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/function/time/date.h"
23
23
#include "drizzled/temporal.h"
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
String *Item_date::val_str(String *str)
26
29
{
27
30
  assert(fixed);
28
31
 
29
32
  /* We have our subclass convert a Date temporal for us */
30
 
  drizzled::Date temporal;
 
33
  Date temporal;
31
34
  if (! get_temporal(temporal))
32
35
    return (String *) NULL; /* get_temporal throws error. */
33
36
 
50
53
  assert(fixed);
51
54
 
52
55
  /* We have our subclass convert a Date temporal for us */
53
 
  drizzled::Date temporal;
 
56
  Date temporal;
54
57
  if (! get_temporal(temporal))
55
58
    return 0; /* get_temporal throws error. */
56
59
 
59
62
  temporal.to_int32_t(&int_value);
60
63
  return (int64_t) int_value;
61
64
}
 
65
 
 
66
} /* namespace drizzled */