#24637: get_constraints broke on newer version of sqlite.
----------------------------------------------+--------------------
     Reporter:  dmrsearch                     |      Owner:  nobody
         Type:  Bug                           |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.8
     Severity:  Release blocker               |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 Running the test suite with the latest version of sqlite "3.8.9" gives the
 following error.    The way sqlite brings back constraints change between
 the two versions.

 {{{
 ERROR: test_unique_together_meta (inspectdb.tests.InspectDBTestCase)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/Users/sthompso/PycharmProjects/django/tests/inspectdb/tests.py",
 line 225, in test_unique_together_meta
     stdout=out)
   File
 "/Users/sthompso/PycharmProjects/django/django/core/management/__init__.py",
 line 118, in call_command
     return command.execute(*args, **defaults)
   File
 "/Users/sthompso/PycharmProjects/django/django/core/management/base.py",
 line 398, in execute
     output = self.handle(*args, **options)
   File
 
"/Users/sthompso/PycharmProjects/django/django/core/management/commands/inspectdb.py",
 line 25, in handle
     for line in self.handle_inspection(options):
   File
 
"/Users/sthompso/PycharmProjects/django/django/core/management/commands/inspectdb.py",
 line 69, in handle_inspection
     constraints = connection.introspection.get_constraints(cursor,
 table_name)
   File
 
"/Users/sthompso/PycharmProjects/django/django/db/backends/sqlite3/introspection.py",
 line 242, in get_constraints
     for number, index, unique in cursor.fetchall():
 ValueError: too many values to unpack
 }}}

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

Reply via email to