snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
This commit is contained in:
17
internal/endtoend/testdata/invalid_queries_foo/stdlib/query.sql
vendored
Normal file
17
internal/endtoend/testdata/invalid_queries_foo/stdlib/query.sql
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
-- name: ListFoos
|
||||
SELECT id FROM foo;
|
||||
|
||||
-- name: ListFoos :one :many
|
||||
SELECT id FROM foo;
|
||||
|
||||
-- name: ListFoos :two
|
||||
SELECT id FROM foo;
|
||||
|
||||
-- name: DeleteFoo :one
|
||||
DELETE FROM foo WHERE id = $1;
|
||||
|
||||
-- name: UpdateFoo :one
|
||||
UPDATE foo SET id = $2 WHERE id = $1;
|
||||
|
||||
-- name: InsertFoo :one
|
||||
INSERT INTO foo (id) VALUES ($1);
|
||||
1
internal/endtoend/testdata/invalid_queries_foo/stdlib/schema.sql
vendored
Normal file
1
internal/endtoend/testdata/invalid_queries_foo/stdlib/schema.sql
vendored
Normal file
@@ -0,0 +1 @@
|
||||
CREATE TABLE foo (id text not null);
|
||||
11
internal/endtoend/testdata/invalid_queries_foo/stdlib/sqlc.json
vendored
Normal file
11
internal/endtoend/testdata/invalid_queries_foo/stdlib/sqlc.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "1",
|
||||
"packages": [
|
||||
{
|
||||
"path": "go",
|
||||
"name": "querytest",
|
||||
"schema": "schema.sql",
|
||||
"queries": "query.sql"
|
||||
}
|
||||
]
|
||||
}
|
||||
7
internal/endtoend/testdata/invalid_queries_foo/stdlib/stderr.txt
vendored
Normal file
7
internal/endtoend/testdata/invalid_queries_foo/stdlib/stderr.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# package querytest
|
||||
query.sql:1:1: missing query type [':one', ':many', ':exec', ':execrows', ':execlastid', ':execresult', ':copyfrom', 'batchexec', 'batchmany', 'batchone']: -- name: ListFoos
|
||||
query.sql:5:1: invalid query comment: -- name: ListFoos :one :many
|
||||
query.sql:8:1: invalid query type: :two
|
||||
query.sql:11:1: query "DeleteFoo" specifies parameter ":one" without containing a RETURNING clause
|
||||
query.sql:14:1: query "UpdateFoo" specifies parameter ":one" without containing a RETURNING clause
|
||||
query.sql:17:1: query "InsertFoo" specifies parameter ":one" without containing a RETURNING clause
|
||||
Reference in New Issue
Block a user