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
55eb6fa5
Commit
55eb6fa5
authored
Sep 14, 2016
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another attempt to fix bug mdev-10785 + cleanup for the previous attempt.
parent
c22d307a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
sql/sql_derived.cc
sql/sql_derived.cc
+1
-8
sql/sql_lex.cc
sql/sql_lex.cc
+1
-0
No files found.
sql/sql_derived.cc
View file @
55eb6fa5
...
...
@@ -1242,18 +1242,11 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
(
uchar
*
)
sl
);
if
(
!
extracted_cond_copy
)
continue
;
/*
Create the conjunction of the existing having condition of sl
and the pushed condition, take it as the new having condition of sl
and fix this new condition
*/
extracted_cond_copy
->
walk
(
&
Item
::
cleanup_processor
,
0
,
0
);
sl
->
cond_pushed_into_having
=
extracted_cond_copy
;
}
thd
->
lex
->
current_select
=
save_curr_select
;
return
false
;
err:
thd
->
lex
->
current_select
=
save_curr_select
;
return
true
;
}
sql/sql_lex.cc
View file @
55eb6fa5
...
...
@@ -4923,6 +4923,7 @@ void binlog_unsafe_map_init()
void
st_select_lex
::
collect_grouping_fields
(
THD
*
thd
)
{
grouping_tmp_fields
.
empty
();
List_iterator
<
Item
>
li
(
join
->
fields_list
);
Item
*
item
=
li
++
;
for
(
uint
i
=
0
;
i
<
master_unit
()
->
derived
->
table
->
s
->
fields
;
i
++
,
(
item
=
li
++
))
...
...
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