Skip to content

Commit

Permalink
fix session settings
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Nov 6, 2023
1 parent 9808711 commit 2f9d4c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion restful.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,11 @@ func (c *APIClient) applySessionConfig(response *QueryResponse) {
c.database = response.Session.Database
}
if response.Session.Settings != nil {
newSessionSettings := map[string]string{}
for k, v := range response.Session.Settings {
c.sessionSettings[k] = v
newSessionSettings[k] = v
}
c.sessionSettings = newSessionSettings
}
}

Expand Down

0 comments on commit 2f9d4c4

Please sign in to comment.