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:
2
internal/endtoend/testdata/syntax_errors/mysql/query/from.sql
vendored
Normal file
2
internal/endtoend/testdata/syntax_errors/mysql/query/from.sql
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* name: TooManyFroms :one */
|
||||
select id, first_name from users from where id = ?;
|
||||
2
internal/endtoend/testdata/syntax_errors/mysql/query/select.sql
vendored
Normal file
2
internal/endtoend/testdata/syntax_errors/mysql/query/select.sql
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/* name: ExtraSelect :one */
|
||||
select id from users where select id;
|
||||
4
internal/endtoend/testdata/syntax_errors/mysql/query/typo.sql
vendored
Normal file
4
internal/endtoend/testdata/syntax_errors/mysql/query/typo.sql
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/* name: MisspelledSelect :one */
|
||||
selectt id, first_name from users;
|
||||
|
||||
|
||||
4
internal/endtoend/testdata/syntax_errors/mysql/schema.sql
vendored
Normal file
4
internal/endtoend/testdata/syntax_errors/mysql/schema.sql
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
CREATE TABLE users (
|
||||
id integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
first_name varchar(255) NOT NULL
|
||||
) ENGINE=InnoDB;
|
||||
12
internal/endtoend/testdata/syntax_errors/mysql/sqlc.json
vendored
Normal file
12
internal/endtoend/testdata/syntax_errors/mysql/sqlc.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": "1",
|
||||
"packages": [
|
||||
{
|
||||
"name": "querytest",
|
||||
"path": "go",
|
||||
"schema": "schema.sql",
|
||||
"queries": "query",
|
||||
"engine": "mysql"
|
||||
}
|
||||
]
|
||||
}
|
||||
4
internal/endtoend/testdata/syntax_errors/mysql/stderr.txt
vendored
Normal file
4
internal/endtoend/testdata/syntax_errors/mysql/stderr.txt
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# package querytest
|
||||
query/from.sql:2:38: syntax error near "from where id = ?;"
|
||||
query/select.sql:2:34: syntax error near "select id;"
|
||||
query/typo.sql:2:8: syntax error near "selectt id, first_name from users;"
|
||||
Reference in New Issue
Block a user