From 1666e00c84a95c86cbee5b7f20b54ccf57d66c60 Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Mon, 9 Oct 2023 14:57:04 -0400 Subject: [PATCH] update query --- lock/postgres_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lock/postgres_test.go b/lock/postgres_test.go index cf486f23e..bfb1a0d99 100644 --- a/lock/postgres_test.go +++ b/lock/postgres_test.go @@ -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