MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_in_subquery_explicit

Method test_in_subquery_explicit

test/sql/test_operators.py:4892–4900  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4890 )
4891
4892 def test_in_subquery_explicit(self):
4893 t = table("t", column("x"))
4894
4895 stmt = select(t.c.x).subquery()
4896
4897 self.assert_compile(
4898 column("q").in_(stmt.select()),
4899 "q IN (SELECT anon_1.x FROM (SELECT t.x AS x FROM t) AS anon_1)",
4900 )
4901
4902 def test_in_subquery_alias_implicit(self):
4903 t = table("t", column("x"))

Callers

nothing calls this directly

Calls 7

tableFunction · 0.90
columnFunction · 0.90
selectFunction · 0.85
assert_compileMethod · 0.80
subqueryMethod · 0.45
in_Method · 0.45
selectMethod · 0.45

Tested by

no test coverage detected