~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/field/time.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <boost/lexical_cast.hpp>
23
23
#include <drizzled/field/time.h>
24
24
#include <drizzled/error.h>
25
 
#include <drizzled/tztime.h>
26
25
#include <drizzled/table.h>
27
26
#include <drizzled/session.h>
28
 
 
29
 
#include <math.h>
30
 
 
 
27
#include <drizzled/temporal.h>
 
28
 
 
29
#include <arpa/inet.h>
 
30
#include <cmath>
31
31
#include <sstream>
32
32
 
33
 
#include <drizzled/temporal.h>
34
 
 
35
 
namespace drizzled
36
 
{
37
 
 
38
 
namespace field
39
 
{
 
33
namespace drizzled {
 
34
namespace field {
40
35
 
41
36
/**
42
37
  time_t type
72
67
 
73
68
int Time::store(const char *from,
74
69
                uint32_t len,
75
 
                const CHARSET_INFO * const )
 
70
                const charset_info_st * const )
76
71
{
77
72
  drizzled::Time temporal;
78
73
 
270
265
  }
271
266
}
272
267
 
273
 
void Time::sql_type(String &res) const
274
 
{
275
 
  res.set_ascii(STRING_WITH_LEN("timestamp"));
276
 
}
277
 
 
278
268
long Time::get_timestamp(bool *null_value) const
279
269
{
280
270
  if ((*null_value= is_null()))