1
0
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:
David Hall
2017-10-09 14:03:32 -05:00
parent 805300341c
commit ff76412f68
2 changed files with 3 additions and 1 deletions

View File

@ -4810,7 +4810,8 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, bool i
}
// 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.parseErrorText = "Recursive CTE";