Skip to content

Commit bf58ec7

Browse files
committed
MDEV-18727 cleanup
1 parent 1d5f6a0 commit bf58ec7

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

sql/sql_delete.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -917,20 +917,6 @@ int mysql_prepare_delete(THD *thd, TABLE_LIST *table_list,
917917
DBUG_RETURN(true);
918918
}
919919

920-
/* 10.4:
921-
if (table_list->has_period())
922-
{
923-
if (table_list->is_view_or_derived())
924-
{
925-
my_error(ER_IT_IS_A_VIEW, MYF(0), table_list->table_name.str);
926-
DBUG_RETURN(true);
927-
}
928-
929-
if (select_lex->period_setup_conds(thd, table_list))
930-
DBUG_RETURN(true);
931-
}
932-
*/
933-
934920
DBUG_ASSERT(table_list->table);
935921
// conds could be cached from previous SP call
936922
DBUG_ASSERT(!table_list->vers_conditions.is_set() ||

sql/sql_update.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,12 +1261,6 @@ bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list,
12611261

12621262
thd->lex->allow_sum_func.clear_all();
12631263

1264-
/* 10.4:
1265-
if (table_list->has_period() &&
1266-
select_lex->period_setup_conds(thd, table_list))
1267-
DBUG_RETURN(true);
1268-
*/
1269-
12701264
DBUG_ASSERT(table_list->table);
12711265
// conds could be cached from previous SP call
12721266
DBUG_ASSERT(!table_list->vers_conditions.is_set() ||

0 commit comments

Comments
 (0)