~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.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:
303
303
  LEX_STRING tmp;
304
304
  lip->yyUnget();                       // ptr points now after last token char
305
305
  tmp.length=lip->yytoklen=length;
306
 
  tmp.str= lip->m_session->mem.strmake(lip->get_tok_start() + skip, tmp.length);
 
306
  tmp.str= lip->m_session->mem.strdup(lip->get_tok_start() + skip, tmp.length);
307
307
 
308
308
  lip->m_cpp_text_start= lip->get_cpp_tok_start() + skip;
309
309
  lip->m_cpp_text_end= lip->m_cpp_text_start + tmp.length;