(self)
| 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 | |
| 4657 | class MyEnum(enum.Enum): |