Open
Description
Version
1.28.0
What happened?
Similar to issue #2130, some SQL formatters including pgFormatter and sql-formatter insert a space between the function name and the opening bracket, causing an issue for sqlc
.
This was resolved for sqlc.arg
and sqlc.slice
in #2250, but it appears the implementation of sqlc.embed
is distinct and hasn't benefit from the fix.
Relevant log output
query.sql:6:7: edited query syntax is invalid: syntax error at or near ")"
Database schema
SQL queries
sqlc.embed (authors)
Configuration
Playground URL
https://play.sqlc.dev/p/1bfbe9499152c12cb4127f077004899333dd1eba3970c398c62fba063a33894e
What operating system are you using?
No response
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go