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
1414a0ed
Commit
1414a0ed
authored
May 07, 2013
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1 -> 5.5 merge
parents
627e7334
a2503315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
sql/item_subselect.cc
sql/item_subselect.cc
+19
-4
No files found.
sql/item_subselect.cc
View file @
1414a0ed
...
...
@@ -1065,8 +1065,15 @@ Item_in_subselect::single_value_transformer(JOIN *join,
if
(
upper_item
)
upper_item
->
set_sub_test
(
item
);
}
/* fix fields is already called for left expression */
substitution
=
func
->
create
(
left_expr
,
subs
);
/*
fix fields is already called for left expression.
Note that real_item() should be used instead of
original left expression because left_expr can be
runtime created Ref item which is deleted at the end
of the statement. Thus one of 'substitution' arguments
can be broken in case of PS.
*/
substitution
=
func
->
create
(
left_expr
->
real_item
(),
subs
);
DBUG_RETURN
(
RES_OK
);
}
...
...
@@ -1261,8 +1268,16 @@ Item_in_subselect::single_value_transformer(JOIN *join,
// select and is not outer anymore.
item
->
walk
(
&
Item
::
remove_dependence_processor
,
0
,
(
uchar
*
)
select_lex
->
outer_select
());
item
=
func
->
create
(
left_expr
,
item
);
// fix_field of item will be done in time of substituting
item
=
func
->
create
(
left_expr
->
real_item
(),
item
);
/*
fix_field of substitution item will be done in time of
substituting.
Note that real_item() should be used instead of
original left expression because left_expr can be
runtime created Ref item which is deleted at the end
of the statement. Thus one of 'substitution' arguments
can be broken in case of PS.
*/
substitution
=
item
;
have_to_be_excluded
=
1
;
if
(
thd
->
lex
->
describe
)
...
...
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