From 9a644b948c6fc657ef8e46123433d686575df2f4 Mon Sep 17 00:00:00 2001 From: "timour@mysql.com" <> Date: Fri, 18 Nov 2005 10:51:46 +0200 Subject: [PATCH] WL#2486 - natural/using joins according to SQL:2003. Enabled view tests that didn't work before. --- mysql-test/r/view.result | 15 +++++++++++++++ mysql-test/t/view.test | 2 -- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index 42708a7c835..9a3dc950c10 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -204,6 +204,21 @@ create table t1 (a int); insert into t1 values (1), (2), (3); create view v1 (a) as select a+1 from t1; create view v2 (a) as select a-1 from t1; +select * from t1 natural left join v1; +a +1 +2 +3 +select * from v2 natural left join t1; +a +0 +1 +2 +select * from v2 natural left join v1; +a +0 +1 +2 drop view v1, v2; drop table t1; create table t1 (a int); diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index 7608d121c55..ad51597fd6f 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -147,11 +147,9 @@ insert into t1 values (1), (2), (3); create view v1 (a) as select a+1 from t1; create view v2 (a) as select a-1 from t1; ---disable_parsing # WL #2486 should enable these tests select * from t1 natural left join v1; select * from v2 natural left join t1; select * from v2 natural left join v1; ---enable_parsing drop view v1, v2; drop table t1;