Skip to content

Commit

Permalink
fix(engine/sqlite): Fix ast when using compound operator (#2673)
Browse files Browse the repository at this point in the history
close #2664
  • Loading branch information
orisano committed Aug 30, 2023
1 parent 5e81d02 commit 70aac26
Show file tree
Hide file tree
Showing 20 changed files with 520 additions and 32 deletions.
5 changes: 5 additions & 0 deletions internal/endtoend/testdata/select_union/mysql/go/models.go

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

29 changes: 29 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.

6 changes: 6 additions & 0 deletions internal/endtoend/testdata/select_union/mysql/query.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE foo (a text, b text);
CREATE TABLE bar (a text, b text);

-- name: SelectUnion :many
SELECT * FROM foo
Expand All @@ -20,3 +21,8 @@ SELECT * FROM foo;
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;

-- name: SelectUnionOther :many
SELECT * FROM foo
UNION
SELECT * FROM bar;

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

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE foo (a text, b text);
CREATE TABLE bar (a text, b text);

-- name: SelectUnion :many
SELECT * FROM foo
Expand All @@ -20,3 +21,8 @@ SELECT * FROM foo;
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;

-- name: SelectUnionOther :many
SELECT * FROM foo
UNION
SELECT * FROM bar;

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

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE foo (a text, b text);
CREATE TABLE bar (a text, b text);

-- name: SelectUnion :many
SELECT * FROM foo
Expand All @@ -20,3 +21,8 @@ SELECT * FROM foo;
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;

-- name: SelectUnionOther :many
SELECT * FROM foo
UNION
SELECT * FROM bar;

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

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CREATE TABLE foo (a text, b text);
CREATE TABLE bar (a text, b text);

-- name: SelectUnion :many
SELECT * FROM foo
Expand All @@ -20,3 +21,8 @@ SELECT * FROM foo;
SELECT * FROM foo
INTERSECT
SELECT * FROM foo;

-- name: SelectUnionOther :many
SELECT * FROM foo
UNION
SELECT * FROM bar;
31 changes: 31 additions & 0 deletions internal/endtoend/testdata/select_union/sqlite/go/db.go

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

19 changes: 19 additions & 0 deletions internal/endtoend/testdata/select_union/sqlite/go/models.go

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

Loading

0 comments on commit 70aac26

Please sign in to comment.