~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/empty_string.h

  • Committer: Mark Atwood
  • Date: 2011-10-08 04:50:51 UTC
  • mfrom: (2430.1.1 rf)
  • Revision ID: me@mark.atwood.name-20111008045051-6ha1qiy7k2a9c3jv
Tags: 2011.10.27
mergeĀ lp:~olafvdspek/drizzle/refactor2

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
class Item_empty_string : public Item_string
33
33
{
34
34
public:
35
 
  Item_empty_string(const char* header, uint32_t length, const charset_info_st* cs= NULL) :
36
 
    Item_string(str_ref(""), cs ? cs : &my_charset_utf8_general_ci)
37
 
  { 
38
 
    name= header; 
39
 
    max_length= cs ? length * cs->mbmaxlen : length; 
40
 
  }
41
 
 
42
 
  void make_field(SendField*);
 
35
  Item_empty_string(const char *header,uint32_t length, const charset_info_st * cs= NULL) :
 
36
    Item_string("", 0, cs ? cs : &my_charset_utf8_general_ci)
 
37
    { name= const_cast<char*>(header); max_length= cs ? length * cs->mbmaxlen : length; }
 
38
  void make_field(SendField *field);
43
39
};
44
40
 
45
41
} /* namespace drizzled */