~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2011-01-13 23:37:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2093.
  • Revision ID: brian@tangent.org-20110113233719-hwcv3en5h5ohevoq
Rework the CREATE TABLE LIKE call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    query_id.next();
189
189
  }
190
190
 
191
 
  /* @todo set session->lex->sql_command to SQLCOM_END here */
 
191
  /* TODO: set session->lex->sql_command to SQLCOM_END here */
192
192
 
193
193
  plugin::Logging::preDo(session);
194
194
  if (unlikely(plugin::EventObserver::beforeStatement(*session)))
209
209
 
210
210
    string tmp(packet, packet_length);
211
211
 
212
 
    identifier::Schema identifier(tmp);
 
212
    SchemaIdentifier identifier(tmp);
213
213
 
214
214
    if (not change_db(session, identifier))
215
215
    {
921
921
  {
922
922
    my_casedn_str(files_charset_info, table->db.str);
923
923
 
924
 
    identifier::Schema schema_identifier(string(table->db.str));
 
924
    SchemaIdentifier schema_identifier(string(table->db.str));
925
925
    if (not check_db_name(session, schema_identifier))
926
926
    {
927
927
 
974
974
         tables ;
975
975
         tables=tables->next_local)
976
976
    {
977
 
      if (not my_strcasecmp(table_alias_charset, alias_str, tables->alias) &&
978
 
          not my_strcasecmp(system_charset_info, ptr->getSchemaName(), tables->getSchemaName()))
 
977
      if (!my_strcasecmp(table_alias_charset, alias_str, tables->alias) &&
 
978
          !strcasecmp(ptr->getSchemaName(), tables->getSchemaName()))
979
979
      {
980
980
        my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str);
981
981
        return NULL;