提交 47fba497 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add symmetric tests with RIGHT join

上级 3ff8f614
......@@ -693,6 +693,12 @@ SELECT * FROM A LEFT JOIN B ON TRUE;
> 1 2 1 2
> rows: 1
SELECT A.A1, A.A2, B.B1, B.B2 FROM A RIGHT JOIN B ON TRUE;
> A1 A2 B1 B2
> -- -- -- --
> 1 2 1 2
> rows: 1
-- this syntax without ON or USING in not standard
SELECT * FROM A LEFT JOIN B;
> A1 A2 B1 B2
......@@ -700,12 +706,25 @@ SELECT * FROM A LEFT JOIN B;
> 1 2 1 2
> rows: 1
-- this syntax without ON or USING in not standard
SELECT A.A1, A.A2, B.B1, B.B2 FROM A RIGHT JOIN B;
> A1 A2 B1 B2
> -- -- -- --
> 1 2 1 2
> rows: 1
SELECT * FROM A LEFT JOIN B ON TRUE NATURAL JOIN C;
> A1 A2 B1 B2 C1
> -- -- -- -- --
> 1 2 1 2 2
> rows: 1
SELECT A.A1, A.A2, B.B1, B.B2, C.C1 FROM A RIGHT JOIN B ON TRUE NATURAL JOIN C;
> A1 A2 B1 B2 C1
> -- -- -- -- --
> 1 2 1 2 2
> rows: 1
-- this syntax without ON or USING in not standard
SELECT * FROM A LEFT JOIN B NATURAL JOIN C;
> A1 A2 B1 B2 C1
......@@ -713,6 +732,13 @@ SELECT * FROM A LEFT JOIN B NATURAL JOIN C;
> 1 2 1 2 2
> rows: 1
-- this syntax without ON or USING in not standard
SELECT A.A1, A.A2, B.B1, B.B2, C.C1 FROM A RIGHT JOIN B NATURAL JOIN C;
> A1 A2 B1 B2 C1
> -- -- -- -- --
> 1 2 1 2 2
> rows: 1
DROP TABLE A;
> ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论