summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-06-13 19:03:03 -0700
committerIgor Babaev <igor@askmonty.org>2011-06-13 19:03:03 -0700
commit56eb6d7e69ecce856e2d54e2404157407cb7203b (patch)
treeed1868d2b843805abf292c87b538e4a7983ae9a4 /sql/sql_class.cc
parentab411f8f1c2e84082623c038eb024c15c58745b5 (diff)
downloadmariadb-git-56eb6d7e69ecce856e2d54e2404157407cb7203b.tar.gz
Fixed LP bug #794890.
Changed the code that processing of multi-updates and multi-deletes with multitable views at the prepare stage. A proper solution would be: never to perform any transformations of views before and at the prepare stage. Yet it would require re-engineering of the code that checks privileges and updatability of views. Ultimately this re-engineering has to be done to provide a clean solution for INSERT/UPDATE/DELETE statements that use views. Fixed a valgrind problem in the function TABLE::use_index.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 925a39afa33..d8aece52c53 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -814,6 +814,7 @@ THD::THD()
memset(&invoker_user, 0, sizeof(invoker_user));
memset(&invoker_host, 0, sizeof(invoker_host));
prepare_derived_at_open= FALSE;
+ save_prep_leaf_list= FALSE;
}