[Commits] 0d12863: MDEV-7613: MariaDB 5.5.40 server crash on update table left join with a view

sanja at mariadb.com sanja at mariadb.com
Thu Mar 5 17:34:16 EET 2015


revision-id: 0d12863b02dc4cec8b1d0fec33a063f748582237
parent(s): b5d6aa551770100b01a67cad12f41bae9f573dc4
committer: Oleksandr Byelkin
branch nick: server
timestamp: 2015-03-05 16:34:13 +0100
message:

MDEV-7613: MariaDB 5.5.40 server crash on update table left join with a view

Multi-update do not need full list of leaf tables. It also do not use it on prepare (mysql_multi_update_prepare()).

---
 sql/sql_select.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 387fdb3..95d1995 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -646,9 +646,7 @@ inline int setup_without_group(THD *thd, Item **ref_pointer_array,
   if (!(select_options & OPTION_SETUP_TABLES_DONE) &&
       setup_tables_and_check_access(thd, &select_lex->context, join_list,
                                     tables_list, select_lex->leaf_tables,
-                                    FALSE, SELECT_ACL, SELECT_ACL,
-                                    (thd->lex->sql_command ==
-                                     SQLCOM_UPDATE_MULTI)))
+                                    FALSE, SELECT_ACL, SELECT_ACL, FALSE))
       DBUG_RETURN(-1);
 
   /*


More information about the commits mailing list