-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler): Fix to not scan children under ast.RangeSubselect when…
… retrieving table listing (#2573) * fix(compiler): Fix to not scan children under ast.RangeSubselect when retrieving table listing close #2569 * test: add endtoend
- Loading branch information
Showing
11 changed files
with
164 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
internal/endtoend/testdata/select_star/mysql/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/* name: GetAll :many */ | ||
SELECT * FROM users; | ||
|
||
/* name: GetIDAll :many */ | ||
SELECT * FROM (SELECT id FROM users) t; |
24 changes: 24 additions & 0 deletions
24
internal/endtoend/testdata/select_star/postgresql/pgx/v4/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
internal/endtoend/testdata/select_star/postgresql/pgx/v4/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
-- name: GetAll :many | ||
SELECT * FROM users; | ||
|
||
/* name: GetIDAll :many */ | ||
SELECT * FROM (SELECT id FROM users) t; |
24 changes: 24 additions & 0 deletions
24
internal/endtoend/testdata/select_star/postgresql/pgx/v5/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
internal/endtoend/testdata/select_star/postgresql/pgx/v5/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
-- name: GetAll :many | ||
SELECT * FROM users; | ||
|
||
/* name: GetIDAll :many */ | ||
SELECT * FROM (SELECT id FROM users) t; |
27 changes: 27 additions & 0 deletions
27
internal/endtoend/testdata/select_star/postgresql/stdlib/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
internal/endtoend/testdata/select_star/postgresql/stdlib/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
-- name: GetAll :many | ||
SELECT * FROM users; | ||
|
||
/* name: GetIDAll :many */ | ||
SELECT * FROM (SELECT id FROM users) t; |
27 changes: 27 additions & 0 deletions
27
internal/endtoend/testdata/select_star/sqlite/go/query.sql.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
-- name: GetAll :many | ||
SELECT * FROM users; | ||
|
||
/* name: GetIDAll :many */ | ||
SELECT * FROM (SELECT id FROM users) t; |