diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-15 18:57:07 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-15 18:58:31 +0200 |
commit | bff7cf9df8349a80a337c94ea55ceaa3daf3d72f (patch) | |
tree | 032017785d5cef471042379e91ab8eb828b81229 /sql/sql_update.cc | |
parent | bf90a486c367a10b66c20fba4bfe64d378fc3238 (diff) | |
download | mariadb-git-bff7cf9df8349a80a337c94ea55ceaa3daf3d72f.tar.gz |
Fix of fail of period.updtae with ps protocol.
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index a193d501c1e..b16c49cf17a 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -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++);) { |