~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field.h

  • Committer: Brian Aker
  • Date: 2011-01-06 18:00:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2064.
  • Revision ID: brian@tangent.org-20110106180047-0l214nvry9x1lkxo
Merge in fixes for microtimestamp,

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
   */
94
94
private:
95
95
  Table *table;
96
 
 
97
96
public:
98
97
  Table *getTable()
99
98
  {
623
622
      0 otherwise
624
623
  */
625
624
  bool set_warning(DRIZZLE_ERROR::enum_warning_level,
626
 
                   drizzled::error_t code,
 
625
                   unsigned int code,
627
626
                   int cuted_increment);
628
627
  /**
629
628
    Produce warning or note about datetime string data saved into field.
641
640
      thread.
642
641
  */
643
642
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level,
644
 
                            drizzled::error_t code,
 
643
                            uint32_t code,
645
644
                            const char *str,
646
645
                            uint32_t str_len,
647
646
                            enum enum_drizzle_timestamp_type ts_type,
661
660
      thread.
662
661
  */
663
662
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level,
664
 
                            drizzled::error_t code,
 
663
                            uint32_t code,
665
664
                            int64_t nr,
666
665
                            enum enum_drizzle_timestamp_type ts_type,
667
666
                            int cuted_increment);
679
678
      thread.
680
679
  */
681
680
  void set_datetime_warning(DRIZZLE_ERROR::enum_warning_level,
682
 
                            const drizzled::error_t code,
 
681
                            const uint32_t code,
683
682
                            double nr,
684
683
                            enum enum_drizzle_timestamp_type ts_type);
685
684
  bool check_overflow(int op_result)
806
805
  */
807
806
  typedef void Copy_func(CopyField*);
808
807
  Copy_func *get_copy_func(Field *to, Field *from);
809
 
 
810
808
public:
811
809
  unsigned char *from_ptr;
812
810
  unsigned char *to_ptr;
821
819
  Field *to_field;
822
820
  String tmp;                                   // For items
823
821
 
824
 
  CopyField() :
825
 
    from_ptr(0),
826
 
    to_ptr(0),
827
 
    from_null_ptr(0),
828
 
    to_null_ptr(0),
829
 
    null_row(0),
830
 
    from_bit(0),
831
 
    to_bit(0),
832
 
    from_length(0),
833
 
    to_length(0),
834
 
    from_field(0),
835
 
    to_field(0)
836
 
  {}
837
 
 
838
 
  ~CopyField()
839
 
  {}
840
 
 
 
822
  CopyField() {}
 
823
  ~CopyField() {}
841
824
  void set(Field *to,Field *from,bool save);    // Field to field
842
825
  void set(unsigned char *to,Field *from);              // Field to string
843
826
  void (*do_copy)(CopyField *);