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
1b6ddb7f
Commit
1b6ddb7f
authored
Sep 29, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.0
into xiphis.org:/usr/home/antony/work2/p2-bug10586.5
parents
11d9e4b6
6e3efdfe
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 @
1b6ddb7f
...
@@ -368,3 +368,15 @@ create table t2 (a int);
...
@@ -368,3 +368,15 @@ create table t2 (a int);
select * from (select * from t1,t2) foo;
select * from (select * from t1,t2) foo;
ERROR 42S21: Duplicate column name 'a'
ERROR 42S21: Duplicate column name 'a'
drop table t1,t2;
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 @
1b6ddb7f
...
@@ -258,4 +258,17 @@ create table t2 (a int);
...
@@ -258,4 +258,17 @@ create table t2 (a int);
select
*
from
(
select
*
from
t1
,
t2
)
foo
;
select
*
from
(
select
*
from
t1
,
t2
)
foo
;
drop
table
t1
,
t2
;
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
# 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