mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-8789 Implement non-recursive common table expressions
Initial implementation
This commit is contained in:
committed by
Igor Babaev
parent
12b86beac8
commit
dfc4772f83
@ -102,6 +102,7 @@ When one supplies long data for a placeholder:
|
||||
#include "sql_acl.h" // *_ACL
|
||||
#include "sql_derived.h" // mysql_derived_prepare,
|
||||
// mysql_handle_derived
|
||||
#include "sql_cte.h"
|
||||
#include "sql_cursor.h"
|
||||
#include "sp_head.h"
|
||||
#include "sp.h"
|
||||
@ -1497,6 +1498,8 @@ static int mysql_test_select(Prepared_statement *stmt,
|
||||
lex->select_lex.context.resolve_in_select_list= TRUE;
|
||||
|
||||
ulong privilege= lex->exchange ? SELECT_ACL | FILE_ACL : SELECT_ACL;
|
||||
if (check_dependencies_in_with_clauses(lex->with_clauses_list))
|
||||
goto error;
|
||||
if (tables)
|
||||
{
|
||||
if (check_table_access(thd, privilege, tables, FALSE, UINT_MAX, FALSE))
|
||||
|
Reference in New Issue
Block a user