• Y
    don't apply invalid ordering when preloading hmt associations. · 4ef75b63
    Yves Senn 提交于
    closes #8663.
    
    When preloading a hmt association there two possible scenarios:
    
    1.) preload with 2 queries: first hm association, then hmt with id IN ()
    2.) preload with join: hmt association is loaded with a join on the hm association
    
    The bug was happening in scenario 1.) with a normal order clause on the hmt association.
    The ordering was also applied when loading the hm association, which resulted in the error.
    
    This patch only applies the ordering the the hm-relation if we are performing a join (2).
    Otherwise the order will only appear in the second query (1).
    4ef75b63
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 47.5 KB