(self)
| 4962 | ) |
| 4963 | |
| 4964 | def test_in_cte_explicit(self): |
| 4965 | t = table("t", column("x")) |
| 4966 | |
| 4967 | stmt = select(t.c.x).cte() |
| 4968 | |
| 4969 | s2 = select(column("q").in_(stmt.select().scalar_subquery())) |
| 4970 | |
| 4971 | self.assert_compile( |
| 4972 | s2, |
| 4973 | "WITH anon_2 AS (SELECT t.x AS x FROM t) " |
| 4974 | "SELECT q IN (SELECT anon_2.x FROM anon_2) AS anon_1", |
| 4975 | ) |
| 4976 | |
| 4977 | def test_in_cte_select(self): |
| 4978 | t = table("t", column("x")) |
nothing calls this directly
no test coverage detected