summaryrefslogtreecommitdiff
path: root/mysql-test/r/derived.result
diff options
context:
space:
mode:
authoracurtis@xiphis.org <>2005-09-08 18:15:05 +0100
committeracurtis@xiphis.org <>2005-09-08 18:15:05 +0100
commite3972e23bb65a339dc74c67547b40c4ad1c6f827 (patch)
treeff1eda742da9e8543fc6a78360fa2293d3feeb63 /mysql-test/r/derived.result
parent8d0dd7a45a9b109d80031b14b328d79131e9b866 (diff)
downloadmariadb-git-e3972e23bb65a339dc74c67547b40c4ad1c6f827.tar.gz
Bug#10586
regression test
Diffstat (limited to 'mysql-test/r/derived.result')
-rw-r--r--mysql-test/r/derived.result12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result
index 7c9d88acf90..19325731d35 100644
--- a/mysql-test/r/derived.result
+++ b/mysql-test/r/derived.result
@@ -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;