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
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 ")"
there is a space between "sqlc.embed" and "(authors)", remove the space then sqlc work.
but, when we write and save sql in ide, ide will insert a space between the function name and the next left parenthesis automatically.
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
andsqlc.slice
in #2250, but it appears the implementation ofsqlc.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
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
The text was updated successfully, but these errors were encountered: