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

Add a converter for boolean values #195

Open
marcogiusti opened this issue Feb 13, 2019 · 1 comment
Open

Add a converter for boolean values #195

marcogiusti opened this issue Feb 13, 2019 · 1 comment

Comments

@marcogiusti
Copy link

marcogiusti commented Feb 13, 2019

If a numeric column (tinyint in my case) is mapped as a BooleanField, Django sometime report a wrong value that is always True. This because it checks for the type (...value is False...). The driver should handle this case and convert from a numeric value to a boolean.

marcogiusti pushed a commit to marcogiusti/django-pyodbc-azure that referenced this issue Feb 13, 2019
Sometime a numeric column is mapped to a boolean field. In this case the
driver should return a boolean.

Fix michiya#195
@OskarPersson
Copy link

This is hopefully fixed in ESSolutions#17

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

No branches or pull requests

2 participants