#35162 closed Bug (fixed)
Adding a BinaryField, TextField, JSONField, or GeometryField with a db_default crashes on MySQL
Description ¶
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
.
Change History (4)
comment:1 by , 13 months ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 13 months ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:3 by , 13 months ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In dfc77637: