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


Ignore:
Timestamp:
Feb 20, 2020, 12:50:38 PM (5 years ago)
Author:
Simon Charette

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