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
bf01313c
Commit
bf01313c
authored
Jul 11, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge moonbone.local:/work/allany-4.1-mysql
into moonbone.local:/work/16302-bug-4.1-opt-mysql
parents
7642d181
7bea031d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+18
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+10
-0
sql/item_subselect.cc
sql/item_subselect.cc
+2
-1
No files found.
mysql-test/r/subselect.result
View file @
bf01313c
...
...
@@ -2835,3 +2835,21 @@ a
4
DROP TABLE t1,t2,t3;
purge master logs before (select adddate(current_timestamp(), interval -4 day));
select 1 from dual where 1 < any (select 2);
1
1
select 1 from dual where 1 < all (select 2);
1
1
select 1 from dual where 2 > any (select 1);
1
1
select 1 from dual where 2 > all (select 1);
1
1
select 1 from dual where 1 < any (select 2 from dual);
1
1
select 1 from dual where 1 < all (select 2 from dual where 1!=1);
1
1
mysql-test/t/subselect.test
View file @
bf01313c
...
...
@@ -1820,4 +1820,14 @@ DROP TABLE t1,t2,t3;
purge
master
logs
before
(
select
adddate
(
current_timestamp
(),
interval
-
4
day
));
#
# Bug#16302: Quantified subquery without any tables gives wrong results
#
select
1
from
dual
where
1
<
any
(
select
2
);
select
1
from
dual
where
1
<
all
(
select
2
);
select
1
from
dual
where
2
>
any
(
select
1
);
select
1
from
dual
where
2
>
all
(
select
1
);
select
1
from
dual
where
1
<
any
(
select
2
from
dual
);
select
1
from
dual
where
1
<
all
(
select
2
from
dual
where
1
!=
1
);
# End of 4.1 tests
sql/item_subselect.cc
View file @
bf01313c
...
...
@@ -705,7 +705,8 @@ Item_in_subselect::single_value_transformer(JOIN *join,
if
(
!
select_lex
->
group_list
.
elements
&&
!
select_lex
->
having
&&
!
select_lex
->
with_sum_func
&&
!
(
select_lex
->
next_select
()))
!
(
select_lex
->
next_select
())
&&
select_lex
->
table_list
.
elements
)
{
Item_sum_hybrid
*
item
;
if
(
func
->
l_op
())
...
...
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