#30715: ArrayField lookups crash on ArrayAgg() over AutoFields.
-------------------------------------+-------------------------------------
     Reporter:  NyanKiyoshi          |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  contrib.postgres     |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  array, serial,       |             Triage Stage:  Accepted
  postgres, psql, auto, id           |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * version:  2.2 => master
 * stage:  Unreviewed => Accepted


Comment:

 Thanks for the report, all `ArrayField`'s
 
[https://github.com/django/django/blob/b10d322c41f66dc7c77c36f90a3532269b25ea93/django/contrib/postgres/fields/array.py#L193-L222
 lookups] are affected, using a `Cast()` expression (that already handle
 this) instead of `'%s::%s'` should fix this issue (tests should land in
 `postgres_tests/test_array.py`).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30715#comment:2>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.5f22aaefd984c1b41e5a9d8be6086ca5%40djangoproject.com.

Reply via email to