summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <svoj@may.pils.ru>2006-06-19 17:50:52 +0500
committerunknown <svoj@may.pils.ru>2006-06-19 17:50:52 +0500
commit3ec84b1aca4ebdc53b7d4e0416243d80a268e484 (patch)
tree8dfcb5760ebbe6976ff51a52ed9c5cf006a263fb /sql/sql_update.cc
parenteeb29b5f70a4a6eeb143a2921d4dcc2b65bba013 (diff)
downloadmariadb-git-3ec84b1aca4ebdc53b7d4e0416243d80a268e484.tar.gz
Addition to fix for
BUG#18036 - update of table joined to self reports table as crashed Set exclude_from_table_unique_test value back to FALSE. It is needed for further check in multi_update::prepare whether to use record cache. sql/sql_update.cc: Set exclude_from_table_unique_test value back to FALSE. It is needed for further check in multi_update::prepare whether to use record cache.
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 9c5e98f4424..c2b7624c9e7 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -859,7 +859,12 @@ reopen_tables:
}
}
}
-
+ /*
+ Set exclude_from_table_unique_test value back to FALSE. It is needed for
+ further check in multi_update::prepare whether to use record cache.
+ */
+ lex->select_lex.exclude_from_table_unique_test= FALSE;
+
if (thd->fill_derived_tables() &&
mysql_handle_derived(lex, &mysql_derived_filling))
DBUG_RETURN(TRUE);