Skip to content

Commit 1c052e9

Browse files
an3lvuvova
authored andcommitted
Cosmetic fixes
Reviewer: <vicentiu@mariadb.org>
1 parent f329fe1 commit 1c052e9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sql/sql_base.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4339,9 +4339,7 @@ lock_table_names(THD *thd, const DDL_options_st &options,
43394339
table->mdl_request.type == MDL_SHARED_READ_ONLY ||
43404340
table->open_type == OT_TEMPORARY_ONLY ||
43414341
(table->open_type == OT_TEMPORARY_OR_BASE && is_temporary_table(table)))
4342-
{
43434342
continue;
4344-
}
43454343

43464344
/* Write lock on normal tables is not allowed in a read only transaction. */
43474345
if (thd->tx_read_only)

sql/sql_parse.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8038,7 +8038,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
80388038
ptr->select_lex= this;
80398039
/*
80408040
We can't cache internal temporary tables between prepares as the
8041-
table may be deleted before next exection.
8041+
table may be deleted before next execution.
80428042
*/
80438043
ptr->cacheable_table= !table->is_derived_table();
80448044
ptr->index_hints= index_hints_arg;
@@ -8059,8 +8059,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
80598059
!cmp(&ptr->db, &tables->db)) &&
80608060
!tables->sequence))
80618061
{
8062-
my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str.str); /* purecov: tested */
8063-
DBUG_RETURN(0); /* purecov: tested */
8062+
my_error(ER_NONUNIQ_TABLE, MYF(0), alias_str.str); /* purecov: tested */
8063+
DBUG_RETURN(0); /* purecov: tested */
80648064
}
80658065
}
80668066
}

0 commit comments

Comments
 (0)