mirror of https://github.com/jackc/pgx.git
mind PreferSimpleProtocol parameter in the config Merge method
parent
b8832c26d4
commit
d9f21d02a5
2
conn.go
2
conn.go
|
@ -706,6 +706,8 @@ func (old ConnConfig) Merge(other ConnConfig) ConnConfig {
|
||||||
cc.Dial = other.Dial
|
cc.Dial = other.Dial
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc.PreferSimpleProtocol = other.PreferSimpleProtocol
|
||||||
|
|
||||||
cc.RuntimeParams = make(map[string]string)
|
cc.RuntimeParams = make(map[string]string)
|
||||||
for k, v := range old.RuntimeParams {
|
for k, v := range old.RuntimeParams {
|
||||||
cc.RuntimeParams[k] = v
|
cc.RuntimeParams[k] = v
|
||||||
|
|
Loading…
Reference in New Issue