#23719: GIS test failure with MySQL 5.6: BLOB/TEXT column can't have a default
value
-------------------------------------+------------------------
               Reporter:  timgraham  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  GIS        |        Version:  1.7
               Severity:  Normal     |       Keywords:
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+------------------------
 Possibly it's related to the first "Incompatible change" listed in the
 [http://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-
 series.html#idm140172667977200 MySQL upgrading notes].

 
`django.contrib.gis.tests.gis_migrations.test_operations.OperationTests.test_add_gis_field`:

 {{{
 Traceback (most recent call last):
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/contrib/gis/tests/gis_migrations/test_operations.py",
 line 78, in test_add_gis_field
     operation.database_forwards("gis", editor, project_state, new_state)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/migrations/operations/fields.py",
 line 37, in database_forwards
     field,
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/contrib/gis/db/backends/mysql/schema.py",
 line 38, in add_field
     super(MySQLGISSchemaEditor, self).add_field(model, field)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/mysql/schema.py",
 line 45, in add_field
     super(DatabaseSchemaEditor, self).add_field(model, field)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/schema.py",
 line 389, in add_field
     self.execute(sql)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/schema.py",
 line 102, in execute
     cursor.execute(sql, params)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/utils.py",
 line 65, in execute
     return self.cursor.execute(sql, params)
   File "/var/lib/jenkins/jobs/django-
 master/workspace/database/mysql_gis/python/python2.7/django/db/utils.py",
 line 95, in __exit__
     six.reraise(dj_exc_type, dj_exc_value, traceback)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/utils.py",
 line 65, in execute
     return self.cursor.execute(sql, params)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/django/db/backends/mysql/base.py",
 line 130, in execute
     return self.cursor.execute(query, args)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/tests/.env/local/lib/python2.7
 /site-packages/MySQLdb/cursors.py", line 219, in execute
     self.errorhandler(self, exc, value)
   File "/var/lib/jenkins/jobs/django-
 
master/workspace/database/mysql_gis/python/python2.7/tests/.env/local/lib/python2.7
 /site-packages/MySQLdb/connections.py", line 38, in defaulterrorhandler
     raise errorvalue
 OperationalError: (1101, "BLOB/TEXT column 'path' can't have a default
 value")
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23719>
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.cf9bdf5233c53b4aa23127e176897928%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to