~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/string.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-06 15:49:49 UTC
  • mto: (2226.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2227.
  • Revision ID: olafvdspek@gmail.com-20110306154949-zzso0l15mbwi60xb
Provide drizzle/drizzle.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define DRIZZLED_ITEM_STRING_H
22
22
 
23
23
#include <drizzled/item/basic_constant.h>
 
24
#include <drizzled/charset_info.h>
24
25
 
25
26
namespace drizzled
26
27
{
77
78
    assert(fixed == 1);
78
79
    return (String*) &str_value;
79
80
  }
80
 
  my_decimal *val_decimal(my_decimal *);
 
81
  type::Decimal *val_decimal(type::Decimal *);
81
82
  int save_in_field(Field *field, bool no_conversions);
82
83
  enum Item_result result_type () const { return STRING_RESULT; }
83
84
  enum_field_types field_type() const { return DRIZZLE_TYPE_VARCHAR; }
94
95
    str_value.append(str, length);
95
96
    max_length= str_value.numchars() * collation.collation->mbmaxlen;
96
97
  }
97
 
  virtual void print(String *str, enum_query_type query_type);
 
98
  virtual void print(String *str);
98
99
 
99
100
  /**
100
101
    Return true if character-set-introducer was explicitly specified in the
151
152
  {}
152
153
  Item *safe_charset_converter(const CHARSET_INFO * const tocs);
153
154
 
154
 
  virtual inline void print(String *str, enum_query_type)
 
155
  virtual inline void print(String *str)
155
156
  {
156
157
    str->append(func_name);
157
158
  }