Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5c81c50f
Commit
5c81c50f
authored
Jun 30, 2023
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-31214 Recursive CTE execution is interrupted without errors or warnings
parent
22e5a5ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
mysql-test/main/cte_recursive.result
mysql-test/main/cte_recursive.result
+4
-0
sql/sql_derived.cc
sql/sql_derived.cc
+7
-0
No files found.
mysql-test/main/cte_recursive.result
View file @
5c81c50f
...
...
@@ -1214,6 +1214,8 @@ generation name
2 Grandma Ann
2 Grandma Sally
2 Grandpa Ben
Warnings:
Warning 1931 Query execution was interrupted. The query exceeded max_recursive_iterations = 1. The query result may be incomplete
#
query with recursive tables using key access
alter table folks add primary key (id);
explain
...
...
@@ -2592,6 +2594,8 @@ select * from applied_modules;
m
m1
m2
Warnings:
Warning 1931 Query execution was interrupted. The query exceeded max_recursive_iterations = 2. The query result may be incomplete
drop table value_nodes, module_nodes, module_arguments, module_results;
#
# mdev-12519: recursive references in subqueries
...
...
sql/sql_derived.cc
View file @
5c81c50f
...
...
@@ -1142,7 +1142,14 @@ bool TABLE_LIST::fill_recursive(THD *thd)
while
(
!
rc
&&
!
with
->
all_are_stabilized
())
{
if
(
with
->
level
>
thd
->
variables
.
max_recursive_iterations
)
{
push_warning_printf
(
thd
,
Sql_condition
::
WARN_LEVEL_WARN
,
ER_QUERY_RESULT_INCOMPLETE
,
ER_THD
(
thd
,
ER_QUERY_RESULT_INCOMPLETE
),
"max_recursive_iterations ="
,
(
ulonglong
)
thd
->
variables
.
max_recursive_iterations
);
break
;
}
with
->
prepare_for_next_iteration
();
rc
=
unit
->
exec_recursive
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment