diff options
author | unknown <bell@sanja.is.com.ua> | 2004-10-07 11:36:46 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-10-07 11:36:46 +0300 |
commit | 5b82bc6644fb766c7a04b49d60e70c474450ce28 (patch) | |
tree | 31264d4e59f24a6566d1a7dc4cba2b63d805bc53 /sql/sql_update.cc | |
parent | 61e96be77fdc0eee96c86903b5b66f8edf6b9238 (diff) | |
parent | 640fefffa7996b5ee68761472fa3000e6e7abc88 (diff) | |
download | mariadb-git-5b82bc6644fb766c7a04b49d60e70c474450ce28.tar.gz |
merge
sql/sql_lex.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_update.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
sql/table.cc:
Auto merged
sql/table.h:
Auto merged
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), |