#35162: Adding a BinaryField, TextField, JSONField, or GeometryField with a
db_default crashes on MySQL
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.0
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  mysql db_default     |             Triage Stage:  Ready for
  text json blob geometry            |  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:"3e7a30fb3a5ea38d06bbedd53e2130bf192425c7" 3e7a30fb]:
 {{{#!CommitTicketReference repository=""
 revision="3e7a30fb3a5ea38d06bbedd53e2130bf192425c7"
 [5.0.x] Fixed #35162 -- Fixed crash when adding fields with db_default on
 MySQL.

 MySQL doesn't allow literal DEFAULT values to be used for BLOB, TEXT,
 GEOMETRY or JSON columns and requires expression to be used instead.

 Regression in 7414704e88d73dafbcfbb85f9bc54cb6111439d3.

 Backport of dfc77637ea5c1aa81caa72b1cf900e6931d61b54 from main
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35162#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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d733866bc-a94656e2-bb6d-44da-ac66-fb6e56901692-000000%40eu-central-1.amazonses.com.

Reply via email to