Open ghost opened 9 months ago
This is most certainly an issue with sqlc.embed
in a RETURNING clause.
Having the same issue. did you find out any workaround?
Having the same issue. did you find out any workaround?
I ended up just explicitly specifying every column in the returning clause - need to wait for it to be fixed for anything better I think.
Version
1.25.0
What happened?
Fails to generate -
syntax error at or near ","
. This appears to be due to having multiple items in theRETURNING
clause given that if I change it to only have a single item it generates as expected. This bug does not appear to happen if the items are single columns, only if they are eithertable.*
orsqlc.embed(table)
.Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/53be01f81c9ba59bf631ce1da2d05e22bdb517f2801da42eed3b9f5e902cb52a
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go