~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-21 14:25:19 UTC
  • mfrom: (2440.2.28 rf)
  • Revision ID: me@mark.atwood.name-20111021142519-bqnyqrkthibv70rc
Tags: 2011.10.28
mergeĀ lp:~olafvdspek/drizzle/refactor6

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("", 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);
 
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*);
39
43
};
40
44
 
41
45
} /* namespace drizzled */