From 87694a9dc0e09ef7f1319ccb3bae77774169b99d Mon Sep 17 00:00:00 2001 From: Gilbert Gilb's Date: Wed, 7 Oct 2020 20:52:55 +0200 Subject: [PATCH] postgres locker: constraint name is no longer user for crdb compatibility --- postgreslocker/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgreslocker/postgres.go b/postgreslocker/postgres.go index 012c913..611b6ec 100644 --- a/postgreslocker/postgres.go +++ b/postgreslocker/postgres.go @@ -53,7 +53,7 @@ func (l *Locker) WithLock( ctx, "INSERT INTO "+quotedTableName+"(key) "+ "VALUES ($1) "+ - "ON CONFLICT ON CONSTRAINT glloq_pk DO NOTHING;", + "ON CONFLICT DO NOTHING;", opts.Key, ); err != nil { return l.wrapError(err)