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

This commit is contained in:
upstream-mirror
2026-09-16 02:17:34 +05:00
commit 0f4df23290
7340 changed files with 238743 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
/* name: TooManyFroms :one */
select id, first_name from users from where id = ?;

View File

@@ -0,0 +1,2 @@
/* name: ExtraSelect :one */
select id from users where select id;

View File

@@ -0,0 +1,4 @@
/* name: MisspelledSelect :one */
selectt id, first_name from users;

View File

@@ -0,0 +1,4 @@
CREATE TABLE users (
id integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
first_name varchar(255) NOT NULL
) ENGINE=InnoDB;

View File

@@ -0,0 +1,12 @@
{
"version": "1",
"packages": [
{
"name": "querytest",
"path": "go",
"schema": "schema.sql",
"queries": "query",
"engine": "mysql"
}
]
}

View 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;"

View File

@@ -0,0 +1,2 @@
/* name: TooManyFroms :one */
select id, first_name from users from where id = $1;

View File

@@ -0,0 +1,2 @@
/* name: ExtraSelect :one */
select id from users where select id;

View File

@@ -0,0 +1,4 @@
/* name: MisspelledSelect :one */
selectt id, first_name from users;

View File

@@ -0,0 +1,4 @@
CREATE TABLE users (
id SERIAL PRIMARY KEY,
first_name varchar(255) NOT NULL
);

View File

@@ -0,0 +1,12 @@
{
"version": "1",
"packages": [
{
"name": "querytest",
"path": "go",
"schema": "schema.sql",
"queries": "query",
"engine": "postgresql"
}
]
}

View File

@@ -0,0 +1,4 @@
# package querytest
query/from.sql:2:35: syntax error at or near "from"
query/select.sql:2:29: syntax error at or near "select"
query/typo.sql:2:2: syntax error at or near "selectt"