2
0

Fix PreferSimpleProtocol overwrite

https://github.com/jackc/pgx/issues/495
This commit is contained in:
Ilya Sinelnikov
2019-02-28 19:02:16 +03:00
parent 6067cfab4f
commit 8fe19f698b
+1 -1
View File
@@ -707,7 +707,7 @@ func (old ConnConfig) Merge(other ConnConfig) ConnConfig {
cc.Dial = other.Dial cc.Dial = other.Dial
} }
cc.PreferSimpleProtocol = other.PreferSimpleProtocol cc.PreferSimpleProtocol = old.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 {