~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sys_var.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:
961
961
    if (str)
962
962
    {
963
963
      uint32_t length= strlen(str);
964
 
      tmp= new Item_string(session->mem.strmake(str, length), length, system_charset_info, DERIVATION_SYSCONST);
 
964
      tmp= new Item_string(session->mem.strdup(str, length), length, system_charset_info, DERIVATION_SYSCONST);
965
965
    }
966
966
    else
967
967
    {
1575
1575
  if (type == OPT_GLOBAL)
1576
1576
    engine= global_system_variables.*offset;
1577
1577
  string engine_name= engine->getName();
1578
 
  return (unsigned char *) session->mem.strmake(engine_name);
 
1578
  return (unsigned char *) session->mem.strdup(engine_name);
1579
1579
}
1580
1580
 
1581
1581