~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-06 18:18:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2433.
  • Revision ID: olafvdspek@gmail.com-20111006181831-1ix5b80ry7iifbjf
Use lex_string assign(), data() and size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    columns(cols),
64
64
    generated(generated_arg)
65
65
  {
66
 
    name.str= const_cast<char *>(name_arg);
67
 
    name.length= name_len_arg;
 
66
    name.assign(name_arg, name_len_arg);
68
67
  }
69
68
 
70
69
  virtual ~Key() {}