~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/sysdate_local.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/sysdate_local.h>
23
23
#include <drizzled/tztime.h>
24
24
#include <drizzled/session.h>
25
25
 
 
26
namespace drizzled
 
27
{
 
28
 
26
29
/**
27
30
    Converts current time in time_t to DRIZZLE_TIME represenatation for local
28
31
    time zone. Defines time zone (local) used for whole SYSDATE function.
63
66
{
64
67
  decimals= 0;
65
68
  collation.set(&my_charset_bin);
66
 
  max_length= drizzled::DateTime::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
 
69
  max_length= DateTime::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
67
70
}
68
71
 
69
72
 
84
87
  return 0;
85
88
}
86
89
 
 
90
} /* namespace drizzled */