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
09c139ac
Commit
09c139ac
authored
Oct 07, 2003
by
bell@laptop.sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fix
parent
d5a7a6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
sql/item_subselect.cc
sql/item_subselect.cc
+4
-5
sql/item_subselect.h
sql/item_subselect.h
+1
-1
No files found.
sql/item_subselect.cc
View file @
09c139ac
...
...
@@ -161,13 +161,12 @@ Item_singlerow_subselect::Item_singlerow_subselect(st_select_lex *select_lex)
DBUG_VOID_RETURN
;
}
Item_maxmin_subselect
::
Item_maxmin_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
,
Item_maxmin_subselect
::
Item_maxmin_subselect
(
st_select_lex
*
select_lex
,
bool
max
)
:
Item_singlerow_subselect
()
{
DBUG_ENTER
(
"Item_maxmin_subselect::Item_maxmin_subselect"
);
init
(
thd
,
select_lex
,
new
select_max_min_finder_subselect
(
this
,
max
));
init
(
select_lex
,
new
select_max_min_finder_subselect
(
this
,
max
));
max_columns
=
1
;
maybe_null
=
1
;
max_columns
=
1
;
...
...
@@ -542,14 +541,14 @@ Item_in_subselect::single_value_transformer(JOIN *join,
{
DBUG_RETURN
(
RES_ERROR
);
}
subs
=
new
Item_singlerow_subselect
(
thd
,
select_lex
);
subs
=
new
Item_singlerow_subselect
(
select_lex
);
}
else
{
// remove LIMIT placed by ALL/ANY subquery
select_lex
->
master_unit
()
->
global_parameters
->
select_limit
=
HA_POS_ERROR
;
subs
=
new
Item_maxmin_subselect
(
thd
,
select_lex
,
subs
=
new
Item_maxmin_subselect
(
select_lex
,
(
func
==
&
Item_bool_func2
::
le_creator
||
func
==
&
Item_bool_func2
::
lt_creator
));
}
...
...
sql/item_subselect.h
View file @
09c139ac
...
...
@@ -158,7 +158,7 @@ class Item_singlerow_subselect :public Item_subselect
class
Item_maxmin_subselect
:
public
Item_singlerow_subselect
{
public:
Item_maxmin_subselect
(
THD
*
thd
,
st_select_lex
*
select_lex
,
bool
max
);
Item_maxmin_subselect
(
st_select_lex
*
select_lex
,
bool
max
);
Item_maxmin_subselect
(
Item_maxmin_subselect
*
item
)
:
Item_singlerow_subselect
(
item
)
{}
};
...
...
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