~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-22 13:10:53 UTC
  • mto: This revision was merged to the branch mainline in revision 2447.
  • Revision ID: olafvdspek@gmail.com-20111022131053-b5ihev4dymuovcj2
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
901
901
  if (!table)
902
902
    return NULL;                                // End of memory
903
903
  const char* alias_str= alias ? alias->data() : table->table.data();
904
 
  if (not table_options.test(TL_OPTION_ALIAS) &&
905
 
      check_table_name(table->table.data(), table->table.size()))
 
904
  if (not table_options.test(TL_OPTION_ALIAS) && check_table_name(table->table))
906
905
  {
907
906
    my_error(ER_WRONG_TABLE_NAME, MYF(0), table->table.data());
908
907
    return NULL;