Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix speculativeAuthenticate panic on empty database #4178

Merged
merged 2 commits into from Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion internal/handler/cmd_query.go
rumyantseva marked this conversation as resolved.
Show resolved Hide resolved
Expand Up @@ -46,7 +46,9 @@

dbName, err := common.GetRequiredParam[string](document, "db")
if err != nil {
return nil, lazyerrors.Error(err)
reply.SetDocument(replyDoc)

Check warning on line 49 in internal/handler/cmd_query.go

View check run for this annotation

Codecov / codecov/patch

internal/handler/cmd_query.go#L49

Added line #L49 was not covered by tests

return reply, nil

Check warning on line 51 in internal/handler/cmd_query.go

View check run for this annotation

Codecov / codecov/patch

internal/handler/cmd_query.go#L51

Added line #L51 was not covered by tests
rumyantseva marked this conversation as resolved.
Show resolved Hide resolved
}

doc, err := h.saslStart(ctx, dbName, document)
Expand Down