[Commits] ee7aa05312b: post review

Oleksandr Byelkin sanja at mariadb.com
Wed Aug 9 18:54:35 EEST 2017


revision-id: ee7aa05312b4c49f28dae1eaad83a44d8aea7427 (mariadb-10.2.7-62-gee7aa05312b)
parent(s): 949ea54de933d919ba7287d4ab561a84e4a58b51
committer: Oleksandr Byelkin
timestamp: 2017-08-09 17:54:35 +0200
message:

post review

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

diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 8f8d051a976..f788d35a297 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -829,8 +829,7 @@ bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *derived)
       DBUG_ASSERT(derived->is_derived());
       DBUG_ASSERT(derived->is_anonymous_derived_table());
       table->grant.privilege= SELECT_ACL;
-      if (derived->is_derived())
-        derived->grant.privilege= SELECT_ACL;
+      derived->grant.privilege= SELECT_ACL;
     }
 #endif
     /* Add new temporary table to list of open derived tables */


More information about the commits mailing list