Skip to content

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

Open
@jmgaooo

Description

@jmgaooo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions