-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
Version
1.30.0
What happened?
Minimal repro:
-- name: Example :many
select 1 where not @argname;generates:
const example = `-- name: Example :many
select 1 where not @argname
`@argname is not picked up as an argument name following a not keyword. Other variations such as cast(@argname as boolean) also do not work.
Workaround:
-- name: Example :many
select 1 where @argname = false;Playground URL
https://play.sqlc.dev/p/48158455c7cadb85f11aae4f6cd865a5c93fa11f3e618868f0d0ab31bbe8c82f
What database engines are you using?
SQLite
What type of code are you generating?
Go
Reactions are currently unavailable