MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_in_cte_select

Method test_in_cte_select

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

Source from the content-addressed store, hash-verified

4641 )
4642
4643 def test_in_cte_select(self):
4644 t = table("t", column("x"))
4645
4646 stmt = select(t.c.x).cte()
4647
4648 s2 = select(column("q").in_(stmt.select()))
4649
4650 self.assert_compile(
4651 s2,
4652 "WITH anon_2 AS (SELECT t.x AS x FROM t) "
4653 "SELECT q IN (SELECT anon_2.x FROM anon_2) AS anon_1",
4654 )
4655
4656
4657class MyEnum(enum.Enum):

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected