summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-10-07 01:45:06 +0300
committerbell@sanja.is.com.ua <>2004-10-07 01:45:06 +0300
commit3ef0b19cd374970fb2a3e6e963b779186a1a6fae (patch)
tree1962b7cafa7e8bfcfcdc7410d38cf3144d2a6604 /sql/sql_update.cc
parenta9b759af3ea6d8e03ae64b97f9cca8d3e9dfc4e4 (diff)
downloadmariadb-git-3ef0b19cd374970fb2a3e6e963b779186a1a6fae.tar.gz
fixed & added comments (according to Igor's review and a bit more)
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc7
1 files changed, 4 insertions, 3 deletions
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<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;
}
@@ -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,