Closed
Description
I'm trying to add this to a query file:
-- name: AcquireLock :exec
SELECT pg_advisory_xact_lock($1);
However, I get the following error:
$ make sql
/Users/kevin/bin/sqlc generate
# package db
db/query/locks.sql:1:1: nodes.ResTarget has nil name
It would be nice if this could generate a function call for me.