diff options
author | bell@sanja.is.com.ua <> | 2004-10-07 11:36:46 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-10-07 11:36:46 +0300 |
commit | c8d5f8991d15aec8ccd0e5eee12d9b18796d5ad8 (patch) | |
tree | 31264d4e59f24a6566d1a7dc4cba2b63d805bc53 /sql/sql_update.cc | |
parent | 05acd51fba7dd5064f4be2b922d6f4c804fc30a0 (diff) | |
parent | 3ef0b19cd374970fb2a3e6e963b779186a1a6fae (diff) | |
download | mariadb-git-c8d5f8991d15aec8ccd0e5eee12d9b18796d5ad8.tar.gz |
merge
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r-- | sql/sql_update.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 25cc8cd89cd..136dc02ff3e 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -72,7 +72,7 @@ static bool check_fields(THD *thd, List<Item> &items) { if (!(field= item->filed_for_view_update())) { - /* as far as item comes from VIEW select list it has name */ + /* item has name, because it comes from VIEW SELECT list */ my_error(ER_NONUPDATEABLE_COLUMN, MYF(0), item->name); return TRUE; } @@ -626,8 +626,9 @@ int mysql_multi_update_prepare(THD *thd) } /* - setup_tables() need for VIEWs. JOIN::prepare() will not do it second - time. + setup_tables() need for VIEWs. JOIN::prepare() will call setup_tables() + second time, but this call will do nothing (there are check for second + call in setup_tables()). */ if ((thd->lex->select_lex.no_wrap_view_item= 1, res= setup_fields(thd, 0, table_list, *fields, 1, 0, 0), |