MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_in_select

Method test_in_select

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

Source from the content-addressed store, hash-verified

4868 __dialect__ = "default"
4869
4870 def test_in_select(self):
4871 t = table("t", column("x"))
4872
4873 stmt = select(t.c.x)
4874
4875 self.assert_compile(column("q").in_(stmt), "q IN (SELECT t.x FROM t)")
4876
4877 def test_in_subquery_warning(self):
4878 t = table("t", column("x"))

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected