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
c9fe6fbb
Commit
c9fe6fbb
authored
Aug 31, 2019
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'mdev-18844' of
https://github.com/waynexia/server
into mdev-18844
parent
2707af2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/sql_union.cc
sql/sql_union.cc
+3
-2
No files found.
sql/sql_union.cc
View file @
c9fe6fbb
...
...
@@ -858,7 +858,7 @@ bool select_unit_ext::send_eof()
}
if
(
curr_op_type
==
INTERSECT_ALL
)
{
longlong
add_cnt
=
additional_cnt
->
val_int
();
ha_rows
add_cnt
=
(
ha_rows
)
additional_cnt
->
val_int
();
if
(
dup_cnt
>
add_cnt
&&
add_cnt
>
0
)
dup_cnt
=
(
ha_rows
)
add_cnt
;
}
...
...
@@ -2171,7 +2171,8 @@ bool st_select_lex_unit::exec()
sl
->
tvc
->
exec
(
sl
);
else
sl
->
join
->
exec
();
if
(
sl
==
union_distinct
&&
!
have_except_all_or_intersect_all
)
if
(
sl
==
union_distinct
&&
!
have_except_all_or_intersect_all
&&
!
(
with_element
&&
with_element
->
is_recursive
))
{
// This is UNION DISTINCT, so there should be a fake_select_lex
DBUG_ASSERT
(
fake_select_lex
!=
NULL
);
...
...
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