Skip to content

Commit

Permalink
Fix of fail of period.updtae with ps protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanja-byelkin committed Jun 15, 2019
1 parent bf90a48 commit bff7cf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/sql_update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ static bool check_fields(THD *thd, TABLE_LIST *table, List<Item> &items,

if (table->has_period())
{
if (table->is_view_or_derived())
{
my_error(ER_IT_IS_A_VIEW, MYF(0), table->table_name.str);
return TRUE;
}
DBUG_ASSERT(thd->lex->sql_command == SQLCOM_UPDATE);
for (List_iterator_fast<Item> it(items); (item=it++);)
{
Expand Down

0 comments on commit bff7cf9

Please sign in to comment.