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
80d9cafa
Commit
80d9cafa
authored
Mar 16, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Plain Diff
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
parents
0997684f
056d5a39
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
135 additions
and
75 deletions
+135
-75
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+10
-2
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+10
-2
sql/item_subselect.cc
sql/item_subselect.cc
+111
-67
sql/item_subselect.h
sql/item_subselect.h
+4
-4
No files found.
mysql-test/r/subselect.result
View file @
80d9cafa
...
@@ -2128,7 +2128,7 @@ drop table t1;
...
@@ -2128,7 +2128,7 @@ drop table t1;
create table t1 (a1 int);
create table t1 (a1 int);
create table t2 (b1 int);
create table t2 (b1 int);
select * from t1 where a2 > any(select b1 from t2);
select * from t1 where a2 > any(select b1 from t2);
ERROR 42S22: Unknown column 'a2' in '
scalar
IN/ALL/ANY subquery'
ERROR 42S22: Unknown column 'a2' in 'IN/ALL/ANY subquery'
select * from t1 where a1 > any(select b1 from t2);
select * from t1 where a1 > any(select b1 from t2);
a1
a1
drop table t1,t2;
drop table t1,t2;
...
@@ -2267,4 +2267,12 @@ pass userid parentid parentgroup childid groupname grouptypeid crse categoryid c
...
@@ -2267,4 +2267,12 @@ pass userid parentid parentgroup childid groupname grouptypeid crse categoryid c
1 5141 12 group2 12 group2 5 1 1 87 Oct04
1 5141 12 group2 12 group2 5 1 1 87 Oct04
1 5141 12 group2 12 group2 5 1 2 88 Oct04
1 5141 12 group2 12 group2 5 1 2 88 Oct04
1 5141 12 group2 12 group2 5 1 2 89 Oct04
1 5141 12 group2 12 group2 5 1 2 89 Oct04
drop table if exists t1, t2, t3, t4, t5;
drop table t1, t2, t3, t4, t5;
create table t1 (a int);
insert into t1 values (1), (2), (3);
SELECT 1 FROM t1 WHERE (SELECT 1) in (SELECT 1);
1
1
1
1
drop table t1;
mysql-test/t/subselect.test
View file @
80d9cafa
...
@@ -1438,8 +1438,9 @@ select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
...
@@ -1438,8 +1438,9 @@ select 1 = ALL (select 1 from t1 where 1 = xx ), 1 as xx;
select
1
=
ALL
(
select
1
from
t1
where
1
=
xx
),
1
as
xx
from
DUAL
;
select
1
=
ALL
(
select
1
from
t1
where
1
=
xx
),
1
as
xx
from
DUAL
;
drop
table
t1
;
drop
table
t1
;
#
# Test for BUG#8218
# Test for BUG#8218
#
CREATE
TABLE
t1
(
CREATE
TABLE
t1
(
categoryId
int
(
11
)
NOT
NULL
,
categoryId
int
(
11
)
NOT
NULL
,
courseId
int
(
11
)
NOT
NULL
,
courseId
int
(
11
)
NOT
NULL
,
...
@@ -1536,5 +1537,12 @@ join
...
@@ -1536,5 +1537,12 @@ join
group
by
group
by
groupstuff
.
groupname
,
colhead
,
t2
.
courseid
;
groupstuff
.
groupname
,
colhead
,
t2
.
courseid
;
drop
table
if
exists
t1
,
t2
,
t3
,
t4
,
t5
;
drop
table
t1
,
t2
,
t3
,
t4
,
t5
;
#
# Transformation in left expression of subquery (BUG#8888)
#
create
table
t1
(
a
int
);
insert
into
t1
values
(
1
),
(
2
),
(
3
);
SELECT
1
FROM
t1
WHERE
(
SELECT
1
)
in
(
SELECT
1
);
drop
table
t1
;
sql/item_subselect.cc
View file @
80d9cafa
This diff is collapsed.
Click to expand it.
sql/item_subselect.h
View file @
80d9cafa
...
@@ -220,8 +220,8 @@ class Item_in_subselect :public Item_exists_subselect
...
@@ -220,8 +220,8 @@ class Item_in_subselect :public Item_exists_subselect
Item_in_subselect
(
Item
*
left_expr
,
st_select_lex
*
select_lex
);
Item_in_subselect
(
Item
*
left_expr
,
st_select_lex
*
select_lex
);
Item_in_subselect
()
Item_in_subselect
()
:
Item_exists_subselect
(),
abort_on_null
(
0
),
transformed
(
0
),
upper_item
(
0
)
:
Item_exists_subselect
(),
optimizer
(
0
),
abort_on_null
(
0
),
transformed
(
0
),
upper_item
(
0
)
{}
{}
subs_type
substype
()
{
return
IN_SUBS
;
}
subs_type
substype
()
{
return
IN_SUBS
;
}
...
@@ -232,8 +232,8 @@ class Item_in_subselect :public Item_exists_subselect
...
@@ -232,8 +232,8 @@ class Item_in_subselect :public Item_exists_subselect
was_null
=
0
;
was_null
=
0
;
}
}
trans_res
select_transformer
(
JOIN
*
join
);
trans_res
select_transformer
(
JOIN
*
join
);
trans_res
s
ingle_value_transformer
(
JOIN
*
join
,
trans_res
s
elect_in_like_transformer
(
JOIN
*
join
,
Comp_creator
*
func
);
Comp_creator
*
func
);
trans_res
single_value_transformer
(
JOIN
*
join
,
Comp_creator
*
func
);
trans_res
row_value_transformer
(
JOIN
*
join
);
trans_res
row_value_transformer
(
JOIN
*
join
);
longlong
val_int
();
longlong
val_int
();
double
val
();
double
val
();
...
...
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