summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2013-08-20 10:32:18 +0300
committerAndrew Godwin <andrew@aeracode.org>2013-08-21 22:30:46 +0100
commitcea720450485e0871daa7f9477fdf2bff5a5b821 (patch)
treeace96ccf3fe0f0fe5e1e44787e011ff4b65f8245 /docs
parentb773ef8fa0ef09641abf376ca8d4083d8966ec52 (diff)
Fixed #14056 -- Made sure LEFT JOIN aren't trimmed in ORDER BY
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.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions