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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d2491996
Commit
d2491996
authored
Oct 19, 2014
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction for the fix of the bug mdev-6874.
parent
ec89abfe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
sql/item_subselect.cc
sql/item_subselect.cc
+2
-1
sql/sql_class.h
sql/sql_class.h
+0
-6
sql/sql_lex.h
sql/sql_lex.h
+1
-0
sql/sql_union.cc
sql/sql_union.cc
+2
-0
No files found.
sql/item_subselect.cc
View file @
d2491996
...
...
@@ -3397,7 +3397,8 @@ bool subselect_union_engine::no_rows()
/* Check if we got any rows when reading UNION result from temp. table: */
return
MY_TEST
(
!
(
unit
->
fake_select_lex
?
unit
->
fake_select_lex
->
join
->
send_records
:
((
select_union_direct
*
)
result
)
->
send_records
));
((
select_union_direct
*
)(
unit
->
get_union_result
()))
->
send_records
));
}
...
...
sql/sql_class.h
View file @
d2491996
...
...
@@ -4463,13 +4463,7 @@ public:
}
void
cleanup
()
{
/*
Only called for top-level select_results, usually select_send,
and for the results of subquery engines
(select_<something>_subselect).
*/
send_records
=
0
;
DBUG_ASSERT
(
false
);
/* purecov: inspected */
}
void
set_thd
(
THD
*
thd_arg
)
{
...
...
sql/sql_lex.h
View file @
d2491996
...
...
@@ -676,6 +676,7 @@ public:
List
<
Item
>
*
get_unit_column_types
();
select_union
*
get_union_result
()
{
return
union_result
;
}
int
save_union_explain
(
Explain_query
*
output
);
int
save_union_explain_part2
(
Explain_query
*
output
);
};
...
...
sql/sql_union.cc
View file @
d2491996
...
...
@@ -784,6 +784,8 @@ bool st_select_lex_unit::exec()
if
(
uncacheable
||
!
item
||
!
item
->
assigned
()
||
describe
)
{
if
(
!
fake_select_lex
)
union_result
->
cleanup
();
for
(
SELECT_LEX
*
sl
=
select_cursor
;
sl
;
sl
=
sl
->
next_select
())
{
ha_rows
records_at_start
=
0
;
...
...
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