Commit 1c052e90 authored by Anel Husakovic's avatar Anel Husakovic Committed by Sergei Golubchik

Cosmetic fixes

Reviewer: <vicentiu@mariadb.org>
parent f329fe1c
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment