From: Mike Bayer Date: Thu, 23 Jan 2014 02:42:56 +0000 (-0500) Subject: used the wrong join X-Git-Tag: rel_0_9_2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b90923eb1fe63384db6b463a152def07a4d0299;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git used the wrong join --- diff --git a/doc/build/orm/relationships.rst b/doc/build/orm/relationships.rst index cdff640641..98a6e1becb 100644 --- a/doc/build/orm/relationships.rst +++ b/doc/build/orm/relationships.rst @@ -1301,11 +1301,8 @@ additional columns when we query; these can be ignored: sess.query(A).join(A.b).all() - {opensql}SELECT a.id AS a_id, a.b_id AS a_b_id, d_1.id AS d_1_id, - b_1.id AS b_1_id, d_1.b_id AS d_1_b_id, d_1.c_id AS d_1_c_id, - c_1.id AS c_1_id, c_1.a_id AS c_1_a_id - FROM a LEFT OUTER JOIN (b AS b_1 JOIN d AS d_1 ON d_1.b_id = b_1.id - JOIN c AS c_1 ON c_1.id = d_1.c_id) ON a.b_id = b_1.id + {opensql}SELECT a.id AS a_id, a.b_id AS a_b_id + FROM a JOIN (b JOIN d ON d.b_id = b.id JOIN c ON c.id = d.c_id) ON a.b_id = b.id Building Query-Enabled Properties