(self)
| 4540 | self.assert_compile(column("q").in_(stmt), "q IN (SELECT t.x FROM t)") |
| 4541 | |
| 4542 | def test_in_subquery_warning(self): |
| 4543 | t = table("t", column("x")) |
| 4544 | |
| 4545 | stmt = select(t.c.x).subquery() |
| 4546 | |
| 4547 | with expect_warnings( |
| 4548 | r"Coercing Subquery object into a select\(\) for use in " |
| 4549 | r"IN\(\); please pass a select\(\) construct explicitly", |
| 4550 | ): |
| 4551 | self.assert_compile( |
| 4552 | column("q").in_(stmt), |
| 4553 | "q IN (SELECT anon_1.x FROM " |
| 4554 | "(SELECT t.x AS x FROM t) AS anon_1)", |
| 4555 | ) |
| 4556 | |
| 4557 | def test_in_subquery_explicit(self): |
| 4558 | t = table("t", column("x")) |
nothing calls this directly
no test coverage detected