Skip to content

Commit 776f3d4

Browse files
committed
use binary mode
1 parent 450ce85 commit 776f3d4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

postgresql/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ func (c *Config) featureSupported(name featureName) bool {
217217
func (c *Config) connParams() []string {
218218
params := map[string]string{}
219219

220+
params["binary_mode"] = "on"
221+
220222
// sslmode and connect_timeout are not allowed with gocloud
221223
// (TLS is provided by gocloud directly)
222224
if c.Scheme == "postgres" {

0 commit comments

Comments
 (0)