~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2011-01-18 00:26:36 UTC
  • mfrom: (2085.2.3 alter-table)
  • Revision ID: brian@tangent.org-20110118002636-mfyvnv58auvqr5gc
First pass on fix for UTF-8, this checks all of our schema names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
974
974
         tables ;
975
975
         tables=tables->next_local)
976
976
    {
977
 
      if (!my_strcasecmp(table_alias_charset, alias_str, tables->alias) &&
978
 
          !strcasecmp(ptr->getSchemaName(), tables->getSchemaName()))
 
977
      if (not my_strcasecmp(table_alias_charset, alias_str, tables->alias) &&
 
978
          not my_strcasecmp(system_charset_info, ptr->getSchemaName(), tables->getSchemaName()))
979
979
      {
980
980
        my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str);
981
981
        return NULL;