~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-10-19 15:36:39 UTC
  • mto: This revision was merged to the branch mainline in revision 2445.
  • Revision ID: olafvdspek@gmail.com-20111019153639-wgufmk0nwbjfvv4p
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
      number of chars for a string of this type because we in CreateField::
40
40
      divide the max_length with mbmaxlen).
41
41
    */
42
 
    max_length= str_value.numchars()*cs->mbmaxlen;
 
42
    max_length= str_value.numchars() * cs->mbmaxlen;
43
43
    set_name(str.data(), str.size(), cs);
44
44
    decimals=NOT_FIXED_DEC;
45
45
    // it is constant => can be used without fix_fields (and frequently used)