Skip to content

Commit

Permalink
update query
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Oct 9, 2023
1 parent e1c1cf8 commit 1666e00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lock/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ type pgLock struct {
}

func queryPgLocks(ctx context.Context, db *sql.DB) ([]pgLock, error) {
q := `SELECT pid,granted,((classid::bigint<<32)|objid::bigint)AS goose_lock_id FROM pg_locks
WHERE locktype='advisory'`
q := `SELECT pid,granted,((classid::bigint<<32)|objid::bigint)AS goose_lock_id FROM pg_locks WHERE locktype='advisory'`
rows, err := db.QueryContext(ctx, q)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1666e00

Please sign in to comment.