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
e3972e23
Commit
e3972e23
authored
Sep 08, 2005
by
acurtis@xiphis.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#10586
regression test
parent
8d0dd7a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
mysql-test/r/derived.result
mysql-test/r/derived.result
+12
-0
mysql-test/t/derived.test
mysql-test/t/derived.test
+13
-0
No files found.
mysql-test/r/derived.result
View file @
e3972e23
...
...
@@ -368,3 +368,15 @@ create table t2 (a int);
select * from (select * from t1,t2) foo;
ERROR 42S21: Duplicate column name 'a'
drop table t1,t2;
create table t1 (ID int unsigned not null auto_increment,
DATA varchar(5) not null, primary key (ID));
create table t2 (ID int unsigned not null auto_increment,
DATA varchar(5) not null, FID int unsigned not null,
primary key (ID));
select A.* from (t1 inner join (select * from t2) as A on t1.ID = A.FID);
ID DATA FID
select t2.* from ((select * from t1) as A inner join t2 on A.ID = t2.FID);
ID DATA FID
select t2.* from (select * from t1) as A inner join t2 on A.ID = t2.FID;
ID DATA FID
drop table t1, t2;
mysql-test/t/derived.test
View file @
e3972e23
...
...
@@ -258,4 +258,17 @@ create table t2 (a int);
select
*
from
(
select
*
from
t1
,
t2
)
foo
;
drop
table
t1
,
t2
;
#
# Bug#10586 - query works with 4.1.8, but not with 4.1.11
#
create
table
t1
(
ID
int
unsigned
not
null
auto_increment
,
DATA
varchar
(
5
)
not
null
,
primary
key
(
ID
));
create
table
t2
(
ID
int
unsigned
not
null
auto_increment
,
DATA
varchar
(
5
)
not
null
,
FID
int
unsigned
not
null
,
primary
key
(
ID
));
select
A
.*
from
(
t1
inner
join
(
select
*
from
t2
)
as
A
on
t1
.
ID
=
A
.
FID
);
select
t2
.*
from
((
select
*
from
t1
)
as
A
inner
join
t2
on
A
.
ID
=
t2
.
FID
);
select
t2
.*
from
(
select
*
from
t1
)
as
A
inner
join
t2
on
A
.
ID
=
t2
.
FID
;
drop
table
t1
,
t2
;
# End of 4.1 tests
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