Skip to content

Commit 987ee65

Browse files
Add missing support for trackSessionState when generating dsn strings.
1 parent f25a889 commit 987ee65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: dsn.go

+4
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ func (cfg *Config) FormatDSN() string {
324324
writeDSNParam(&buf, &hasParam, "rejectReadOnly", "true")
325325
}
326326

327+
if cfg.TrackSessionState {
328+
writeDSNParam(&buf, &hasParam, "trackSessionState", "true")
329+
}
330+
327331
if len(cfg.ServerPubKey) > 0 {
328332
writeDSNParam(&buf, &hasParam, "serverPubKey", url.QueryEscape(cfg.ServerPubKey))
329333
}

0 commit comments

Comments
 (0)