mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed the problem of wrong identification of WITH tables defined in WITH clauses without RECURSIVE.
Added test cases to check the fix. Fixed the problem of wrong types of recursive tables when the type of anchor part does not coincide with the type of recursive part. Prevented usage of marerialization and subquery cache for subqueries with recursive references. Introduced system variables 'max_recursion_level'. Added a test case to test usage of this variable.
This commit is contained in:
@ -865,6 +865,7 @@ JOIN::prepare(TABLE_LIST *tables_init,
|
||||
select_lex->check_unrestricted_recursive(
|
||||
thd->variables.only_standards_compliant_cte))
|
||||
DBUG_RETURN(-1);
|
||||
select_lex->check_subqueries_with_recursive_references();
|
||||
|
||||
int res= check_and_do_in_subquery_rewrites(this);
|
||||
|
||||
|
Reference in New Issue
Block a user