~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
3683
3683
  {
3684
3684
    char command[80];
3685
3685
    Lex_input_stream *lip= session->m_lip;
3686
 
    strmake(command, lip->yylval->symbol.str,
3687
 
            cmin((ulong)lip->yylval->symbol.length, sizeof(command)-1));
 
3686
    strncpy(command, lip->yylval->symbol.str,
 
3687
            cmin((ulong)lip->yylval->symbol.length, sizeof(command)-1));
3688
3688
    my_error(ER_CANT_USE_OPTION_HERE, MYF(0), command);
3689
3689
    return 1;
3690
3690
  }