~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2011-01-19 18:03:32 UTC
  • mfrom: (2088.8.12 timestamp)
  • mto: This revision was merged to the branch mainline in revision 2098.
  • Revision ID: brian@tangent.org-20110119180332-acfk5i8oofp63s40
Merge in time code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    @note
212
212
      Needs to be changed if/when we want to support different time formats.
213
213
  */
214
 
  virtual int store_time(type::Time *ltime, enum enum_drizzle_timestamp_type t_type);
 
214
  virtual int store_time(type::Time *ltime, type::timestamp_t t_type);
215
215
  virtual double val_real()=0;
216
216
  virtual int64_t val_int()=0;
217
217
  virtual type::Decimal *val_decimal(type::Decimal *);
644
644
                            drizzled::error_t code,
645
645
                            const char *str,
646
646
                            uint32_t str_len,
647
 
                            enum enum_drizzle_timestamp_type ts_type,
 
647
                            type::timestamp_t ts_type,
648
648
                            int cuted_increment);
649
649
  /**
650
650
    Produce warning or note about integer datetime value saved into field.
663
663
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level,
664
664
                            drizzled::error_t code,
665
665
                            int64_t nr,
666
 
                            enum enum_drizzle_timestamp_type ts_type,
 
666
                            type::timestamp_t ts_type,
667
667
                            int cuted_increment);
668
668
  /**
669
669
    Produce warning or note about double datetime data saved into field.
681
681
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level,
682
682
                            const drizzled::error_t code,
683
683
                            double nr,
684
 
                            enum enum_drizzle_timestamp_type ts_type);
 
684
                            type::timestamp_t ts_type);
685
685
  bool check_overflow(int op_result)
686
686
  {
687
687
    return (op_result == E_DEC_OVERFLOW);