~drizzle-pbxt/drizzle/drizzle-pbxt-2

« back to all changes in this revision

Viewing changes to drizzled/item/string.h

  • Committer: Paul McCullagh
  • Date: 2009-11-10 14:18:39 UTC
  • mfrom: (1038.1.7 drizzle-pbxt-pre-merge)
  • Revision ID: paul.mccullagh@primebase.org-20091110141839-2j3k43b17ag6f605
Merged Drizzle trunk and PBXT 1.0.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_ITEM_STRING_H
21
 
#define DRIZZLED_ITEM_ITEM_STRING_H
 
20
#ifndef DRIZZLED_ITEM_STRING_H
 
21
#define DRIZZLED_ITEM_STRING_H
22
22
 
23
23
#include <drizzled/item/basic_constant.h>
24
24
 
35
35
      We have to have a different max_length than 'length' here to
36
36
      ensure that we get the right length if we do use the item
37
37
      to create a new table. In this case max_length must be the maximum
38
 
      number of chars for a string of this type because we in Create_field::
 
38
      number of chars for a string of this type because we in CreateField::
39
39
      divide the max_length with mbmaxlen).
40
40
    */
41
41
    max_length= str_value.numchars()*cs->mbmaxlen;
154
154
  }
155
155
};
156
156
 
157
 
#endif /* DRIZZLED_ITEM_ITEM_STRING_H */
 
157
#endif /* DRIZZLED_ITEM_STRING_H */