#34936: db_default with decimal.Decimal() crashes on SQLite.
-------------------------------------+-------------------------------------
Reporter: Mariusz Felisiak | Owner: David
| Sanders
Type: Bug | Status: closed
Component: Database layer | Version: 5.0
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"797957fb48f63760442d3d4c8985fd94f8602d5e" 797957fb]:
{{{
#!CommitTicketReference repository=""
revision="797957fb48f63760442d3d4c8985fd94f8602d5e"
Fixed #34936 -- Fixed migration crash for DecimalField with db_default on
SQLite.
CAST() must be wrapped in parentheses to be recognized as an expression on
SQLite.
Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34936#comment:5>
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/0107018b9167a78b-50743773-acbe-4d4f-b163-5e9c0adb1848-000000%40eu-central-1.amazonses.com.