Skip to content
Permalink
Browse files
MDEV-13453: Executing a query via CTE requires more permissions than …
…the query itself

Fix of nondebuging version issue
  • Loading branch information
sanja-byelkin committed Nov 15, 2017
1 parent 5e7435c commit 88cc6db
Showing 1 changed file with 2 additions and 1 deletion.
@@ -7558,7 +7558,8 @@ bool check_grant(THD *thd, ulong want_access, TABLE_LIST *tables,
sctx= t_ref->security_ctx ? t_ref->security_ctx : thd->security_ctx;

if (tl->with ||
(tl->with= tl->select_lex->find_table_def_in_with_clauses(tl)))
(tl->select_lex &&
(tl->with= tl->select_lex->find_table_def_in_with_clauses(tl))))
continue;

const ACL_internal_table_access *access=

0 comments on commit 88cc6db

Please sign in to comment.