Skip to content

Commit

Permalink
postgres locker: constraint name is no longer user for crdb compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
gilbsgilbs committed Oct 7, 2020
1 parent f101d17 commit 87694a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgreslocker/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87694a9

Please sign in to comment.