diff options
author | unknown <rburnett@bk-internal.mysql.com> | 2006-06-19 17:50:11 +0200 |
---|---|---|
committer | unknown <rburnett@bk-internal.mysql.com> | 2006-06-19 17:50:11 +0200 |
commit | 1e9daff9c14c25c8cc3e3db0fb52032c2f868d9a (patch) | |
tree | d6bcc685b72ed61b88625dab11cf34ccba811d0c /mysql-test/t/join.test | |
parent | 92f8d2eb67507343711173aaa5a382bea4f01ae4 (diff) | |
parent | 1d970e32aee126da48522078855e8cb064daf598 (diff) | |
download | mariadb-git-1e9daff9c14c25c8cc3e3db0fb52032c2f868d9a.tar.gz |
Merge bk-internal.mysql.com:/data0/bk/mysql-5.1
into bk-internal.mysql.com:/data0/bk/mysql-5.1-kt
mysql-test/r/join.result:
Auto merged
mysql-test/t/join.test:
Auto merged
sql/log.h:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_show.cc:
Auto merged
Diffstat (limited to 'mysql-test/t/join.test')
-rw-r--r-- | mysql-test/t/join.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/t/join.test b/mysql-test/t/join.test index ce19fce678a..e156ccd82a8 100644 --- a/mysql-test/t/join.test +++ b/mysql-test/t/join.test @@ -564,4 +564,29 @@ select a2 from ((t1 natural join t2) join t3 on b=c1) natural join t4; drop table t1,t2,t3,t4; +# +# BUG#15355: Common natural join column not resolved in prepared statement nested query +# +create table t1 (c int, b int); +create table t2 (a int, b int); +create table t3 (b int, c int); +create table t4 (y int, c int); +create table t5 (y int, z int); + +insert into t1 values (3,2); +insert into t2 values (1,2); +insert into t3 values (2,3); +insert into t4 values (1,3); +insert into t5 values (1,4); + +-- this fails +prepare stmt1 from "select * from ((t3 natural join (t1 natural join t2)) +natural join t4) natural join t5"; +execute stmt1; + +-- this works +select * from ((t3 natural join (t1 natural join t2)) natural join t4) + natural join t5; +drop table t1, t2, t3, t4, t5; + # End of tests for WL#2486 - natural/using join |