You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when there is a missing semicolon in the query, the error message indicates a "duplicate query name," which can be misleading and doesn't clearly explain the problem. It would be more helpful if the error message indicated that there is a "missing semicolon" instead, as this would provide more accurate and actionable feedback for developers.
Proposed Solution
I would suggest Instead of error message duplicate query name.
Version
1.28.0
What happened?
Currently, when there is a missing semicolon in the query, the error message indicates a "duplicate query name," which can be misleading and doesn't clearly explain the problem. It would be more helpful if the error message indicated that there is a "missing semicolon" instead, as this would provide more accurate and actionable feedback for developers.
Proposed Solution
I would suggest Instead of error message
duplicate query name
.or atleast syntax error like below would be good
missing semicolon
is better error message thanduplicate query name
Related Issue
Relevant log output
# package sql/queries/windows.sql:1:1: duplicate query name: ListAllWindows
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/6f1378cad4cd769f36f69593f2a1ab25118baca1b9a0639bd8d3d91448384084
What operating system are you using?
Linux
What database engines are you using?
SQLite
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: