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

query.sql:20:7: syntax error near "SELECT" #3877

Open
jmgaooo opened this issue Mar 10, 2025 · 0 comments
Open

query.sql:20:7: syntax error near "SELECT" #3877

jmgaooo opened this issue Mar 10, 2025 · 0 comments

Comments

@jmgaooo
Copy link

jmgaooo commented Mar 10, 2025

Version

1.28.0

What happened?

sqlc generate failed.

package dao

query.sql:20:7: syntax error near "SELECT"


It should be related to sqlc.slice. If the SQL in sqlc.slice is placed at the end, this error does not occur.

Relevant log output

Database schema

SQL queries

Configuration

Playground URL

https://play.sqlc.dev/p/5602df5fd37eca5f6ac95dda7da33f112478c3a41c46cb63cf76126c458c2fdc

What operating system are you using?

Windows

What database engines are you using?

MySQL

What type of code are you generating?

Go

@jmgaooo jmgaooo added the bug Something isn't working label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant