Switch to absolute latest pq driver (#12859)
This PR updates the lib/pq driver to the current master head to pick up the deadlock fix in lib/pq#993 Hopefully this will resolve our CI issues. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
7250f5342f
commit
54ae448588
9 changed files with 43 additions and 14 deletions
8
vendor/github.com/lib/pq/conn.go
generated
vendored
8
vendor/github.com/lib/pq/conn.go
generated
vendored
|
@ -1074,9 +1074,9 @@ func isDriverSetting(key string) bool {
|
|||
return true
|
||||
case "binary_parameters":
|
||||
return true
|
||||
case "service":
|
||||
case "krbsrvname":
|
||||
return true
|
||||
case "spn":
|
||||
case "krbspn":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
@ -1168,13 +1168,13 @@ func (cn *conn) auth(r *readBuf, o values) {
|
|||
|
||||
var token []byte
|
||||
|
||||
if spn, ok := o["spn"]; ok {
|
||||
if spn, ok := o["krbspn"]; ok {
|
||||
// Use the supplied SPN if provided..
|
||||
token, err = cli.GetInitTokenFromSpn(spn)
|
||||
} else {
|
||||
// Allow the kerberos service name to be overridden
|
||||
service := "postgres"
|
||||
if val, ok := o["service"]; ok {
|
||||
if val, ok := o["krbsrvname"]; ok {
|
||||
service = val
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue