~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/boolean.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  int store(int64_t nr, bool unsigned_val);
53
53
  int store_decimal(const drizzled::type::Decimal*);
54
54
 
55
 
  String *val_str(String*,String *);
56
 
  double val_real();
57
 
  int64_t val_int();
58
 
  type::Decimal *val_decimal(type::Decimal *);
 
55
  String *val_str(String*,String *) const;
 
56
  double val_real() const;
 
57
  int64_t val_int() const;
 
58
  type::Decimal *val_decimal(type::Decimal *) const;
59
59
 
60
60
  void sql_type(drizzled::String&) const;
61
61
 
64
64
  void sort_string(unsigned char*, uint32_t);
65
65
  uint32_t max_display_length() { return 5; } // longest string is "false"
66
66
 
 
67
  bool can_be_compared_as_int64_t() const
 
68
  {
 
69
    return true;
 
70
  }
 
71
 
67
72
  inline String *val_str(String *str) { return val_str(str, str); }
68
73
  uint32_t size_of() const { return sizeof(*this); }
69
74