#35162: Adding a BinaryField, TextField, JSONField, or GeometryField with a
db_default crashes on MySQL
-------------------------------------+-------------------------------------
Reporter: Simon | Owner: Simon Charette
Charette |
Type: Bug | Status: assigned
Component: Database | Version: 5.0
layer (models, ORM) |
Severity: Release | Keywords: mysql db_default
blocker | text json blob geometry
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
MySQL do not support literal value `DEFAULT` for these fields and requires
them to be wrapped in parenthesis so they are considered expressions.
This is already something we must handle when using `DEFAULT` to add
fields with a `default` so all the backend specific logic lives in in
`_column_default_sql` so it's only a matter of using it in
`db_default_sql`.
--
Ticket URL: <https://code.djangoproject.com/ticket/35162>
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/0107018d6fad866a-bcd6b96c-1665-4760-8bbf-43cbe0477fc2-000000%40eu-central-1.amazonses.com.