~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/size.h

  • Committer: Brian Aker
  • Date: 2011-02-14 22:31:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2171.
  • Revision ID: brian@tangent.org-20110214223126-rabur7v6dz3m989p
Fix issues where int display length may be too small, and fix collation
cases around dates (which are always binary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 20; }
 
71
  uint32_t max_display_length() { return MY_INT64_NUM_DECIMAL_DIGITS+1; } // +1 for sign
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);