~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/epoch.h

  • Committer: Lee Bieber
  • Date: 2011-02-19 06:59:33 UTC
  • mfrom: (2179.5.1 drizzle-staging)
  • Revision ID: kalebral@gmail.com-20110219065933-pjrxhdcvupqg6tma
Merge Brian - clarifies a number of parser ambiguity, and cleans up UPDATE and DELETE

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  int store_decimal(const type::Decimal *value);
59
59
 
60
60
  int  reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0; return 0; }
61
 
  double val_real(void) const;
62
 
  int64_t val_int(void) const;
63
 
  String *val_str(String*,String *) const;
 
61
  double val_real(void);
 
62
  int64_t val_int(void);
 
63
  String *val_str(String*,String *);
64
64
  int cmp(const unsigned char *,const unsigned char *);
65
65
  void sort_string(unsigned char *buff,uint32_t length);
66
66
  uint32_t pack_length() const { return 8; }
71
71
  virtual void set_default();
72
72
 
73
73
  /* Get TIMESTAMP field value as seconds since begging of Unix Epoch */
74
 
  virtual long get_timestamp(bool *null_value) const;
 
74
  virtual long get_timestamp(bool *null_value);
75
75
 
76
76
  virtual bool is_timestamp() const
77
77
  {
79
79
  }
80
80
 
81
81
private:
82
 
  bool get_date(type::Time &ltime,uint32_t fuzzydate) const;
83
 
  bool get_time(type::Time &ltime) const;
 
82
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
83
  bool get_time(type::Time &ltime);
84
84
 
85
85
public:
86
86
  virtual timestamp_auto_set_type get_auto_set_type() const;