MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_right_nested_inner_join

Method test_right_nested_inner_join

test/sql/test_select.py:397–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

395 )
396
397 def test_right_nested_inner_join(self):
398 inner = child.join(grandchild)
399
400 stmt = select(parent).outerjoin_from(parent, inner)
401
402 self.assert_compile(
403 stmt,
404 "SELECT parent.id, parent.data FROM parent "
405 "LEFT OUTER JOIN "
406 "(child JOIN grandchild ON child.id = grandchild.child_id) "
407 "ON parent.id = child.parent_id",
408 )
409
410 def test_joins_w_filter_by(self):
411 # Note: Both parent and child have a "data" column

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
outerjoin_fromMethod · 0.80
assert_compileMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected