#34590: Querying for decimals larger than max_digits crashes on SQLite
-------------------------------------+-------------------------------------
Reporter: Marc Odermatt | Owner: Mohit
| Singh Sinsniwal
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mohit Singh Sinsniwal):
* owner: nobody => Mohit Singh Sinsniwal
* status: new => assigned
Comment:
Replying to [comment:3 Simon Charette]:
> The most straightforward way to address this is likely to have
`DecimalField.get_db_prep_value` catch `decimal.InvalidOperation` and
raise `EmptyResultSet` instead.
Hi Simon 👋 , I want to implement this patch. I will send the pr within
6hrs
--
Ticket URL: <https://code.djangoproject.com/ticket/34590#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188441e74c2-78aaf747-8984-4e5c-87f2-0434bdccdb70-000000%40eu-central-1.amazonses.com.