Commit bff7cf9d authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

Fix of fail of period.updtae with ps protocol.

parent bf90a486
...@@ -181,6 +181,11 @@ static bool check_fields(THD *thd, TABLE_LIST *table, List<Item> &items, ...@@ -181,6 +181,11 @@ static bool check_fields(THD *thd, TABLE_LIST *table, List<Item> &items,
if (table->has_period()) 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); DBUG_ASSERT(thd->lex->sql_command == SQLCOM_UPDATE);
for (List_iterator_fast<Item> it(items); (item=it++);) for (List_iterator_fast<Item> it(items); (item=it++);)
{ {
......
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