~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 21:57:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110622215714-0wmhwrx6of27etov
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
883
883
                                     bool allocate_lex_string)
884
884
{
885
885
  if (allocate_lex_string)
886
 
    lex_str= (LEX_STRING *)mem.alloc(sizeof(LEX_STRING));
 
886
    lex_str= new (mem) LEX_STRING;
887
887
  lex_str->str= mem_root->strmake(str, length);
888
888
  lex_str->length= length;
889
889
  return lex_str;