~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707134107-6mi7pauiatxtf4oe
Rename strmake to strdup (standard name)

Show diffs side-by-side

added added

removed removed

Lines of Context:
881
881
{
882
882
  if (allocate_lex_string)
883
883
    lex_str= new (mem) LEX_STRING;
884
 
  lex_str->str= mem_root->strmake(str, length);
 
884
  lex_str->str= mem_root->strdup(str, length);
885
885
  lex_str->length= length;
886
886
  return lex_str;
887
887
}
1538
1538
    my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
1539
1539
    return true;
1540
1540
  }
1541
 
  db= mem.strmake(*impl_->schema);
 
1541
  db= mem.strdup(*impl_->schema);
1542
1542
  db_length= impl_->schema->size();
1543
1543
  return false;
1544
1544
}