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

Avoid unnecessary token skip #642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

HeyiSun
Copy link

@HeyiSun HeyiSun commented Sep 29, 2022

After parsing the statement and constructing the 'between operator', there is no need to call statement.skip().

This bug may cause the query ignores the eq filter when both eq and range filters exist. For example

queryset.filter(field_a=xxx).filter(field_b__range=[aaa, bbb])

the field_a=xxx may be ignored

After parsing the statement and construct the 'between operator', there is no need to call statement.skip().
This bug may cause the query ignore the eq filter when both eq and range filters exist together.
For example
queryset.filter(field_a=xxx).filter(field_b__range=[aaa, bbb])
@HeyiSun HeyiSun changed the title Avoid necessary token skip Avoid unnecessary token skip Oct 9, 2022
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.

None yet

1 participant