#28197: db.backends.postgresql.introspection.get_constraints retrieves index 
fields
in arbitrary order
-------------------------------------+-------------------------------------
               Reporter:  Mactory    |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  1.11
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When trying to run the migrations from scratch for the django-blog-zinna
 app the first time, the migration command threw the following error when
 run under django 1.11 on a postgresql db:
 `ValueError: Found wrong number (0) of constraints for zinnia_entry(slug,
 creation_date)`

 After digging through the code, I found out, that the `array_agg` function
 used in the query at `db.backends.postgresql.introspection` line 196
 aggregates the values in an arbitrary order.

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

Reply via email to