Commit 0f610081 authored by unknown's avatar unknown

Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-5.0

into  xiphis.org:/usr/home/antony/work2/p2-bug10586.5

parents 0669d1e0 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;
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment