mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02: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:
parent
0f7fe2a743
commit
b4f1f42062
16 changed files with 491 additions and 141 deletions
|
|
@ -2145,6 +2145,12 @@ static Sys_var_ulong Sys_max_prepared_stmt_count(
|
|||
VALID_RANGE(0, 1024*1024), DEFAULT(16382), BLOCK_SIZE(1),
|
||||
&PLock_prepared_stmt_count);
|
||||
|
||||
static Sys_var_ulong Sys_max_recursion_level(
|
||||
"max_recursion_level",
|
||||
"Maximum number of iterations when executing recursive queries",
|
||||
SESSION_VAR(max_recursion_level), CMD_LINE(OPT_ARG),
|
||||
VALID_RANGE(0, UINT_MAX), DEFAULT(UINT_MAX), BLOCK_SIZE(1));
|
||||
|
||||
static Sys_var_ulong Sys_max_sort_length(
|
||||
"max_sort_length",
|
||||
"The number of bytes to use when sorting BLOB or TEXT values (only "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue