diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 4a96f88fd25..ee552a52db2 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -4339,9 +4339,7 @@ lock_table_names(THD *thd, const DDL_options_st &options, table->mdl_request.type == MDL_SHARED_READ_ONLY || table->open_type == OT_TEMPORARY_ONLY || (table->open_type == OT_TEMPORARY_OR_BASE && is_temporary_table(table))) - { continue; - } /* Write lock on normal tables is not allowed in a read only transaction. */ if (thd->tx_read_only) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index b8ae790b17f..b6ae771b72d 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -8038,7 +8038,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd, ptr->select_lex= this; /* We can't cache internal temporary tables between prepares as the - table may be deleted before next exection. + table may be deleted before next execution. */ ptr->cacheable_table= !table->is_derived_table(); ptr->index_hints= index_hints_arg; @@ -8059,8 +8059,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd, !cmp(&ptr->db, &tables->db)) && !tables->sequence)) { - my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str.str); /* purecov: tested */ - DBUG_RETURN(0); /* purecov: tested */ + my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str.str); /* purecov: tested */ + DBUG_RETURN(0); /* purecov: tested */ } } }