~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/size.h

  • Committer: Brian Aker
  • Date: 2011-01-26 18:29:34 UTC
  • mto: (2122.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2123.
  • Revision ID: brian@tangent.org-20110126182934-hsboi3ab5105on1g
fix test case along with the error message for TIME.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0;
61
61
    return 0;
62
62
  }
63
 
  double val_real(void) const;
64
 
  int64_t val_int(void) const;
65
 
  String *val_str(String*,String *) const;
 
63
  double val_real(void);
 
64
  int64_t val_int(void);
 
65
  String *val_str(String*,String *);
66
66
  int cmp(const unsigned char *,const unsigned char *);
67
67
  void sort_string(unsigned char *buff,uint32_t length);
68
68
  uint32_t pack_length() const { return 8; }
69
69
  void sql_type(String &str) const;
70
70
  bool can_be_compared_as_int64_t() const { return true; }
71
 
  uint32_t max_display_length() { return MY_INT64_NUM_DECIMAL_DIGITS+1; } // +1 for sign
 
71
  uint32_t max_display_length() { return 20; }
72
72
  virtual unsigned char *pack(unsigned char* to, const unsigned char *from,
73
73
                              uint32_t max_length,
74
74
                              bool low_byte_first);