summaryrefslogtreecommitdiff
path: root/mysql-test/t/derived.test
diff options
context:
space:
mode:
authorunknown <acurtis@xiphis.org>2005-09-08 18:15:05 +0100
committerunknown <acurtis@xiphis.org>2005-09-08 18:15:05 +0100
commit6e3efdfea7a2f113a9ec874184d87a0eec3f199b (patch)
treeff1eda742da9e8543fc6a78360fa2293d3feeb63 /mysql-test/t/derived.test
parent824750a9edc0ec1c186d9afbdcdbbdcb7b0b7ac0 (diff)
downloadmariadb-git-6e3efdfea7a2f113a9ec874184d87a0eec3f199b.tar.gz
Bug#10586
regression test mysql-test/r/derived.result: Test for bug mysql-test/t/derived.test: Test for bug
Diffstat (limited to 'mysql-test/t/derived.test')
-rw-r--r--mysql-test/t/derived.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/derived.test b/mysql-test/t/derived.test
index f52e12849e4..33b06e9bc11 100644
--- a/mysql-test/t/derived.test
+++ b/mysql-test/t/derived.test
@@ -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