#26116: schema's test_alter_implicit_id_to_explicit warns/errors with "Field 
'id'
doesn't have a default value" on MySQL
--------------------------------------+------------------------
               Reporter:  timgraham   |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  Migrations  |        Version:  1.8
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------
 On MySQL 5.6.27:
 {{{
 django/db/backends/mysql/base.py:112: Warning: Field 'id' doesn't have a
 default value
   return self.cursor.execute(query, args)
 }}}

 On MySQL 5.7.10:
 {{{
 IntegrityError: (1364, "Field 'id' doesn't have a default value")
 }}}
 (I guess MySQL is getting stricter about data integrity.)

 I'm not sure if it's something Django can fix or if the test should be
 skipped on MySQL.

--
Ticket URL: <https://code.djangoproject.com/ticket/26116>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.ba1c4521fe5f3f2759710ef8269f0916%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to