Version
1.10.0
What happened?
An error should be returned when a GROUP BY clause references a column that does not exist
Relevant log output
No response
Database schema
CREATE TABLE authors (
id BIGSERIAL PRIMARY KEY,
name text NOT NULL,
bio text
);
SQL queries
-- name: ListAuthors :many
SELECT *
FROM authors
GROUP BY invalid_reference;
Configuration
{
"version": "1",
"packages": [
{
"path": "go",
"engine": "postgresql",
"name": "querytest",
"schema": "query.sql",
"queries": "query.sql"
}
]
}
Playground URL
https://play.sqlc.dev/p/6e1c775ff5f5b3709903bc77dac8aa51f321a648fd00f4990e1c3eceead271ae
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
Version
1.10.0
What happened?
An error should be returned when a GROUP BY clause references a column that does not exist
Relevant log output
No response
Database schema
SQL queries
Configuration
{ "version": "1", "packages": [ { "path": "go", "engine": "postgresql", "name": "querytest", "schema": "query.sql", "queries": "query.sql" } ] }Playground URL
https://play.sqlc.dev/p/6e1c775ff5f5b3709903bc77dac8aa51f321a648fd00f4990e1c3eceead271ae
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go