From 3ef0b19cd374970fb2a3e6e963b779186a1a6fae Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Thu, 7 Oct 2004 01:45:06 +0300 Subject: fixed & added comments (according to Igor's review and a bit more) --- sql/sql_update.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sql/sql_update.cc') diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 39701774b0e..7a643933c46 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -72,7 +72,7 @@ static bool check_fields(THD *thd, List &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; } @@ -589,8 +589,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 (setup_tables(thd, table_list, &lex->select_lex.where) || (thd->lex->select_lex.no_wrap_view_item= 1, -- cgit v1.2.1