~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/empty_string.h

  • Committer: patrick crews
  • Date: 2011-06-08 03:02:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2329.
  • Revision ID: gleebix@gmail.com-20110608030227-updkyv2652zvfajc
Initial voodoo worked to give us a crashme mode.  Need docs still

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_EMPTY_STRING_H
21
 
#define DRIZZLED_ITEM_EMPTY_STRING_H
 
20
#pragma once
22
21
 
23
22
/**
24
23
  Item_empty_string -- is a utility class to put an item into List<Item>
34
33
class Item_empty_string :public Item_string
35
34
{
36
35
public:
37
 
  Item_empty_string(const char *header,uint32_t length, const CHARSET_INFO * cs= NULL) :
 
36
  Item_empty_string(const char *header,uint32_t length, const charset_info_st * cs= NULL) :
38
37
    Item_string("",0, cs ? cs : &my_charset_utf8_general_ci)
39
38
    { name= const_cast<char*>(header); max_length= cs ? length * cs->mbmaxlen : length; }
40
39
  void make_field(SendField *field);
42
41
 
43
42
} /* namespace drizzled */
44
43
  
45
 
#endif /* DRIZZLED_ITEM_EMPTY_STRING_H */