Changes between Initial Version and Version 1 of Ticket #31150, comment 10


Ignore:
Timestamp:
02/20/20 18:50:38 (2 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31150, comment 10

    initial v1  
    33In the cases where an outer query spawns a multi-valued relationship and the subquery references one of these multi-valued relationship we must keep grouping by the subquery.
    44
    5 In your original reports the `INNER JOIN "camps_bookingoption" T4` joins spawns multiple rows for the same `camps.Offer` and then your subquery filter against `(T4."position")` which
     5In your original reports the `INNER JOIN "camps_bookingoption" T4` joins spawns multiple rows for the same `camps.Offer` and then your subquery filter against `(T4."position")`.
    66
    77In ORM terms that means we must keep returning `self` in `Subquery.get_group_by_cols` when any of our `OuterRef` include a `__` which could point to a multi-valued relationship.
Back to Top