#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
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"8dde0504f3771ff2707bdddb702eaf5c06bb77a7" 8dde0504]:
{{{
#!CommitTicketReference repository=""
revision="8dde0504f3771ff2707bdddb702eaf5c06bb77a7"
[5.0.x] 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.
Backport of 797957fb48f63760442d3d4c8985fd94f8602d5e from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34936#comment:6>
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/0107018b9168067e-bc5d6f29-7076-464c-9a39-e9094a2e7f87-000000%40eu-central-1.amazonses.com.