(self)
| 4975 | ) |
| 4976 | |
| 4977 | def test_in_cte_select(self): |
| 4978 | t = table("t", column("x")) |
| 4979 | |
| 4980 | stmt = select(t.c.x).cte() |
| 4981 | |
| 4982 | s2 = select(column("q").in_(stmt.select())) |
| 4983 | |
| 4984 | self.assert_compile( |
| 4985 | s2, |
| 4986 | "WITH anon_2 AS (SELECT t.x AS x FROM t) " |
| 4987 | "SELECT q IN (SELECT anon_2.x FROM anon_2) AS anon_1", |
| 4988 | ) |
| 4989 | |
| 4990 | |
| 4991 | class MyEnum(enum.Enum): |