Skip to content

made empty query handling use NothingNode #93

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

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

timgraham
Copy link
Collaborator

@timgraham timgraham commented Aug 1, 2024

This is consistent with Django's SQLCompiler. Also, whether or not a query is supported, shouldn't depend on whether or not it's empty.

EmptyResultSet is raised by SQLCompiler.check_query().
This is consistent with Django's SQLCompiler.
@timgraham timgraham changed the title remove unreachable empty query check in MongoQuery.get_cursor() made empty query handling use NothingNode Aug 1, 2024
@timgraham timgraham marked this pull request as ready for review August 1, 2024 16:11
@timgraham timgraham requested a review from WaVEV August 1, 2024 16:12
Copy link
Collaborator

@WaVEV WaVEV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timgraham timgraham merged commit 9bca50f into mongodb:main Aug 5, 2024
3 checks passed
@timgraham timgraham deleted the empty-query branch August 5, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants