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
1f1ee085
Commit
1f1ee085
authored
Oct 29, 2021
by
Sergei Krivonos
Committed by
Sergei Krivonos
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-23766: Fix fix_semijoin_strategies_for_picked_join_order by assert
parent
47ab793d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/opt_subselect.cc
sql/opt_subselect.cc
+3
-3
No files found.
sql/opt_subselect.cc
View file @
1f1ee085
...
...
@@ -3819,9 +3819,9 @@ void fix_semijoin_strategies_for_picked_join_order(JOIN *join)
Json_writer_array
semijoin_plan
(
thd
,
"join_order"
);
for
(
i
=
first
+
sjm
->
tables
;
i
<=
tablenr
;
i
++
)
{
Json_writer_object
trace_one_table
(
thd
);
if
(
unlikely
(
thd
->
trace_started
()))
{
Json_writer_object
trace_one_table
(
thd
);
trace_one_table
.
add_table_name
(
join
->
best_positions
[
i
].
table
);
}
best_access_path
(
join
,
join
->
best_positions
[
i
].
table
,
rem_tables
,
...
...
@@ -3858,9 +3858,9 @@ void fix_semijoin_strategies_for_picked_join_order(JOIN *join)
Json_writer_array
semijoin_plan
(
thd
,
"join_order"
);
for
(
idx
=
first
;
idx
<=
tablenr
;
idx
++
)
{
Json_writer_object
trace_one_table
(
thd
);
if
(
unlikely
(
thd
->
trace_started
()))
{
Json_writer_object
trace_one_table
(
thd
);
trace_one_table
.
add_table_name
(
join
->
best_positions
[
idx
].
table
);
}
if
(
join
->
best_positions
[
idx
].
use_join_buffer
)
...
...
@@ -3897,9 +3897,9 @@ void fix_semijoin_strategies_for_picked_join_order(JOIN *join)
Json_writer_array
semijoin_plan
(
thd
,
"join_order"
);
for
(
idx
=
first
;
idx
<=
tablenr
;
idx
++
)
{
Json_writer_object
trace_one_table
(
thd
);
if
(
unlikely
(
thd
->
trace_started
()))
{
Json_writer_object
trace_one_table
(
thd
);
trace_one_table
.
add_table_name
(
join
->
best_positions
[
idx
].
table
);
}
if
(
join
->
best_positions
[
idx
].
use_join_buffer
||
(
idx
==
first
))
...
...
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