Skip to content

Commit 70aac26

Browse files
authored
fix(engine/sqlite): Fix ast when using compound operator (#2673)
close #2664
1 parent 5e81d02 commit 70aac26

File tree

20 files changed

+520
-32
lines changed

20 files changed

+520
-32
lines changed

internal/endtoend/testdata/select_union/mysql/go/models.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/mysql/go/query.sql.go

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/mysql/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CREATE TABLE foo (a text, b text);
2+
CREATE TABLE bar (a text, b text);
23

34
-- name: SelectUnion :many
45
SELECT * FROM foo
@@ -20,3 +21,8 @@ SELECT * FROM foo;
2021
SELECT * FROM foo
2122
INTERSECT
2223
SELECT * FROM foo;
24+
25+
-- name: SelectUnionOther :many
26+
SELECT * FROM foo
27+
UNION
28+
SELECT * FROM bar;

internal/endtoend/testdata/select_union/postgres/pgx/v4/go/models.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/pgx/v4/go/query.sql.go

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/pgx/v4/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CREATE TABLE foo (a text, b text);
2+
CREATE TABLE bar (a text, b text);
23

34
-- name: SelectUnion :many
45
SELECT * FROM foo
@@ -20,3 +21,8 @@ SELECT * FROM foo;
2021
SELECT * FROM foo
2122
INTERSECT
2223
SELECT * FROM foo;
24+
25+
-- name: SelectUnionOther :many
26+
SELECT * FROM foo
27+
UNION
28+
SELECT * FROM bar;

internal/endtoend/testdata/select_union/postgres/pgx/v5/go/models.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/pgx/v5/go/query.sql.go

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/pgx/v5/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CREATE TABLE foo (a text, b text);
2+
CREATE TABLE bar (a text, b text);
23

34
-- name: SelectUnion :many
45
SELECT * FROM foo
@@ -20,3 +21,8 @@ SELECT * FROM foo;
2021
SELECT * FROM foo
2122
INTERSECT
2223
SELECT * FROM foo;
24+
25+
-- name: SelectUnionOther :many
26+
SELECT * FROM foo
27+
UNION
28+
SELECT * FROM bar;

internal/endtoend/testdata/select_union/postgres/stdlib/go/models.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/stdlib/go/query.sql.go

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/postgres/stdlib/query.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
CREATE TABLE foo (a text, b text);
2+
CREATE TABLE bar (a text, b text);
23

34
-- name: SelectUnion :many
45
SELECT * FROM foo
@@ -20,3 +21,8 @@ SELECT * FROM foo;
2021
SELECT * FROM foo
2122
INTERSECT
2223
SELECT * FROM foo;
24+
25+
-- name: SelectUnionOther :many
26+
SELECT * FROM foo
27+
UNION
28+
SELECT * FROM bar;

internal/endtoend/testdata/select_union/sqlite/go/db.go

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/select_union/sqlite/go/models.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)