Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DISTINCT parsing bug #3816

Open
howesteve opened this issue Feb 2, 2025 · 0 comments
Open

DISTINCT parsing bug #3816

howesteve opened this issue Feb 2, 2025 · 0 comments
Labels
📚 sqlite bug Something isn't working 💻 linux

Comments

@howesteve
Copy link

Version

1.28.0

What happened?

~> sqlc version
v1.28.0

This query:

-- name: JobListQueueNames :many
select distinct (queue_name) from jobs;

... is valid syntax in sqlite, but is parsed wrongly by sql, who things the parenthesis are part of the column name:

# package db
query.sql:131:16: column "(queue_name)" does not exist

Relevant log output

Database schema

SQL queries

Configuration

Playground URL

No response

What operating system are you using?

Linux

What database engines are you using?

SQLite

What type of code are you generating?

No response

@howesteve howesteve added the bug Something isn't working label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 sqlite bug Something isn't working 💻 linux
Projects
None yet
Development

No branches or pull requests

1 participant