-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move test cases to endtoend tests
- Loading branch information
1 parent
baf228d
commit a49bddd
Showing
7 changed files
with
34 additions
and
104 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
internal/endtoend/testdata/order_by_non_existing_column/mysql/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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Example queries for sqlc | ||
CREATE TABLE authors ( | ||
id INT | ||
); | ||
|
||
-- name: ListAuthors :many | ||
SELECT id FROM authors | ||
ORDER BY adfadsf; |
7 changes: 7 additions & 0 deletions
7
internal/endtoend/testdata/order_by_non_existing_column/mysql/sqlc.yaml
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 1 | ||
packages: | ||
- path: "go" | ||
name: "querytest" | ||
engine: "postgresql" | ||
schema: "query.sql" | ||
queries: "query.sql" |
2 changes: 2 additions & 0 deletions
2
internal/endtoend/testdata/order_by_non_existing_column/mysql/stderr.txt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# package querytest | ||
query.sql:8:10: column reference "adfadsf" not found |
8 changes: 8 additions & 0 deletions
8
internal/endtoend/testdata/order_by_non_existing_column/sqlite/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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Example queries for sqlc | ||
CREATE TABLE authors ( | ||
id INT | ||
); | ||
|
||
-- name: ListAuthors :many | ||
SELECT id FROM authors | ||
ORDER BY adfadsf; |
7 changes: 7 additions & 0 deletions
7
internal/endtoend/testdata/order_by_non_existing_column/sqlite/sqlc.yaml
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 1 | ||
packages: | ||
- path: "go" | ||
name: "querytest" | ||
engine: "postgresql" | ||
schema: "query.sql" | ||
queries: "query.sql" |
2 changes: 2 additions & 0 deletions
2
internal/endtoend/testdata/order_by_non_existing_column/sqlite/stderr.txt
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# package querytest | ||
query.sql:8:10: column reference "adfadsf" not found |