~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Mark Atwood
  • Date: 2011-08-04 16:21:21 UTC
  • mfrom: (2318.9.14 refactor3)
  • Revision ID: me@mark.atwood.name-20110804162121-6b9ay1b1de3yfgvl
mergeĀ lp:~olafvdspek/drizzle/refactor3

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
  lex_string_t tmp;
299
299
  lip->yyUnget();                       // ptr points now after last token char
300
300
  tmp.length=lip->yytoklen=length;
301
 
  tmp.str= lip->m_session->mem.strmake(lip->get_tok_start() + skip, tmp.length);
 
301
  tmp.str= lip->m_session->mem.strdup(lip->get_tok_start() + skip, tmp.length);
302
302
 
303
303
  lip->m_cpp_text_start= lip->get_cpp_tok_start() + skip;
304
304
  lip->m_cpp_text_end= lip->m_cpp_text_start + tmp.length;