Skip to content

Commit

Permalink
endtoend: add tests for INTERSECT and EXCEPT
Browse files Browse the repository at this point in the history
  • Loading branch information
aitva committed Feb 24, 2021
1 parent a268445 commit b752ff0
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 0 deletions.
58 changes: 58 additions & 0 deletions internal/endtoend/testdata/select_union/mysql/go/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions internal/endtoend/testdata/select_union/mysql/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ CREATE TABLE foo (a text, b text);
SELECT * FROM foo
UNION
SELECT * FROM foo;

-- name: SelectExcept :many
SELECT * FROM foo
EXCEPT
SELECT * FROM foo;

-- name: SelectIntersect :many
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;
58 changes: 58 additions & 0 deletions internal/endtoend/testdata/select_union/postgres/go/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions internal/endtoend/testdata/select_union/postgres/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,13 @@ CREATE TABLE foo (a text, b text);
SELECT * FROM foo
UNION
SELECT * FROM foo;

-- name: SelectExcept :many
SELECT * FROM foo
EXCEPT
SELECT * FROM foo;

-- name: SelectIntersect :many
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;

0 comments on commit b752ff0

Please sign in to comment.