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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Return error when use query.Result (non materialize) after .Do closed #1579

Open
rekby opened this issue Dec 10, 2024 · 0 comments
Open
Labels
enhancement New feature or request query-service

Comments

@rekby
Copy link
Member

rekby commented Dec 10, 2024

var res query.Result
db.Query().Do(ctx, func(s query.Session)){
  res, _ =  s.Query(...)
  return nil
})

_, err := result.NextResultSet(ctx)
require.Error(t, err) // <-- must be error
@rekby rekby added enhancement New feature or request query-service labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request query-service
Projects
None yet
Development

No branches or pull requests

1 participant