#35982: DecimalField.get_db_prep_value() doesn't call adapt_decimalfield_value()
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
| Graham
Type: Bug | Status: assigned
Component: Database layer | Version: 5.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
Ok so basically this was never an issue because the core backends PEP249
drivers (`sqlite3`, `psycopg`, `mysqlclient`, and `oracledb`) all support
`decimal.Decimal` natively? If this is the case then it means the
`utils.format_number` call is likely unnecessary at this point (I'll give
the suite a run by removing it) otherwise it means a regression test can
be written for querying as well without relying on mocking.
--
Ticket URL: <https://code.djangoproject.com/ticket/35982#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 visit
https://groups.google.com/d/msgid/django-updates/01070193a1a714e7-0204ff85-18cb-494b-91dd-90252bb0ef0e-000000%40eu-central-1.amazonses.com.