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

« back to all changes in this revision

Viewing changes to drizzled/field/epoch.h

  • 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
 
23
23
#include <drizzled/field/str.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
namespace field
29
 
{
30
 
 
31
 
class TableShare;
32
 
typedef struct charset_info_st CHARSET_INFO;
 
25
namespace drizzled {
 
26
namespace field {
33
27
 
34
28
class Epoch :public Field_str {
35
29
public:
51
45
  enum Item_result cmp_type () const { return INT_RESULT; }
52
46
 
53
47
  int store(const char *to,uint32_t length,
54
 
            const CHARSET_INFO * const charset);
 
48
            const charset_info_st * const charset);
55
49
  int store(double nr);
56
50
  int store(int64_t nr, bool unsigned_val);
57
51
  int store_decimal(const type::Decimal *value);
63
57
  int cmp(const unsigned char *,const unsigned char *);
64
58
  void sort_string(unsigned char *buff,uint32_t length);
65
59
  uint32_t pack_length() const { return 8; }
66
 
  virtual void sql_type(String &str) const;
67
60
  virtual bool can_be_compared_as_int64_t() const { return true; }
68
61
  bool zero_pack() const { return 0; }
69
62
  virtual void set_time();