• Anssi Kääriäinen's avatar
    Fixed #14056 -- Made sure LEFT JOIN aren't trimmed in ORDER BY · cea72045
    Anssi Kääriäinen yazdı
    If LEFT JOINs are required for correct results, then trimming the join
    can lead to incorrect results. Consider case:
    
    TBL A: ID | TBL B: ID  A_ID
           1           1   1
           2
    Now A.order_by('b__a') did use a join to B, and B's a_id column. This
    was seen to contain the same value as A's id, and so the join was
    trimmed. But this wasn't correct as the join is LEFT JOIN, and for row
    A.id = 2 the B.a_id column is NULL.
    cea72045
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...