Skip to content

Commit

Permalink
Unlock in postgres db driver should also use the schema name
Browse files Browse the repository at this point in the history
  • Loading branch information
dhui committed Nov 14, 2018
1 parent f38fe38 commit 6ebc6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (p *Postgres) Unlock() error {
return nil
}

aid, err := database.GenerateAdvisoryLockId(p.config.DatabaseName)
aid, err := database.GenerateAdvisoryLockId(p.config.DatabaseName, p.config.SchemaName)
if err != nil {
return err
}
Expand Down

0 comments on commit 6ebc6c7

Please sign in to comment.