-
Notifications
You must be signed in to change notification settings - Fork 51
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
Invalid query is generated: For field=BitField #69
Comments
Had the same issue. We had to downgrade to 3.0.10 version of Django and the problem disappeared. Dependencies (Not working):
|
That issue (and more) is solved in this pull request #64. |
Same happen to me but in the User Table for the fields: is_staff, is_active, is_superuser |
Issue exists in django3.1.6 also. When we can expect the fixed version in PyPI |
Tested this morning on django3.2 - issue is still present |
Issue still persists with django 3.2 and django-mssql-backend 2.8.1. Has any progress been made to fix this? |
Inexplicably (or perhaps explicably), there's an 🅼🆂 fork that doesn't show up in the forks, that addresses this if i'm not mistaken. It also allows setting encoding and decoding for the pyodbc connection among other things. |
Hi all, thanks for your work on this. Noticed the below when testing version 2.8.1 with not yet supported Django 3.1.1. However, it works as expected up to version 3.0.10. Just adding this here fwiw or any that misinterpret "Django 2.2 or newer" :-).
models.py:
query:
queryset = Book.objects.filter(BitField=True)
Generated T-SQL (Django 3.1.1):
Error:
An expression of non-boolean type specified in a context where a condition is expected, near 'BitField'.
The text was updated successfully, but these errors were encountered: