Skip to content

Acquire advisory lock #211

Closed
Closed
@kevinburke1

Description

@kevinburke1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions