Skip to content

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

christofer holm and others added 18 commits May 3, 2022 18:51
* update sqlparse to 0.4.2

* remove limit from django version

* insert can now be used

* add change notices

* update condition for constant and index name when in and nin operators are used in query

* update condition for constant and index name when in and nin operators are used in query (remove redundant)
Djongo is upgraded to work with Django 4.0.1
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])
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.