Skip to content

Commit

Permalink
add client_encoding and datestyle params (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Jul 8, 2024
1 parent be3f5b8 commit c0dae6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions coordinator/provider/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,15 @@ func (qc *qdbCoordinator) PrepareClient(nconn net.Conn, pt port.RouterPortType)
}

r := route.NewRoute(nil, nil, nil)

params := map[string]string{
"client_encoding": "UTF8",
"DateStyle": "ISO",
}
for k, v := range params {
cl.SetParam(k, v)
}

r.SetParams(cl.Params())
if err := cl.Auth(r); err != nil {
return nil, err
Expand Down

0 comments on commit c0dae6c

Please sign in to comment.