~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-12-26 00:05:21 UTC
  • mfrom: (722.2.37 devel)
  • Revision ID: brian@tangent.org-20081226000521-sq94jvbhxz6becwe
Merging Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
3495
3495
    char command[80];
3496
3496
    Lex_input_stream *lip= session->m_lip;
3497
3497
    strncpy(command, lip->yylval->symbol.str,
3498
 
            cmin((ulong)lip->yylval->symbol.length, sizeof(command)-1));
 
3498
            cmin(lip->yylval->symbol.length, sizeof(command)-1));
 
3499
    command[cmin(lip->yylval->symbol.length, sizeof(command)-1)]=0;
3499
3500
    my_error(ER_CANT_USE_OPTION_HERE, MYF(0), command);
3500
3501
    return 1;
3501
3502
  }