You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-783 Check for recursive only cte. Check all cte in list.
This commit is contained in:
@ -4810,7 +4810,8 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, bool i
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Until we handle recursive cte:
|
// Until we handle recursive cte:
|
||||||
if (gwi.thd->lex->derived_tables == DERIVED_WITH)
|
With_clause* with_clause = select_lex.get_with_clause();
|
||||||
|
if (with_clause && with_clause->with_recursive)
|
||||||
{
|
{
|
||||||
gwi.fatalParseError = true;
|
gwi.fatalParseError = true;
|
||||||
gwi.parseErrorText = "Recursive CTE";
|
gwi.parseErrorText = "Recursive CTE";
|
||||||
|
@ -67,6 +67,7 @@ template <class T> bool isnan(T);
|
|||||||
#include "sql_select.h"
|
#include "sql_select.h"
|
||||||
#include "mysqld_error.h"
|
#include "mysqld_error.h"
|
||||||
#include "item_windowfunc.h"
|
#include "item_windowfunc.h"
|
||||||
|
#include "sql_cte.h"
|
||||||
|
|
||||||
// Now clean up the pollution as best we can...
|
// Now clean up the pollution as best we can...
|
||||||
#undef min
|
#undef min
|
||||||
|
Reference in New Issue
Block a user