(self)
| 59 | ) |
| 60 | |
| 61 | def test_standalone(self): |
| 62 | table1 = self.tables.people |
| 63 | subq = select(table1.c.people_id).subquery() |
| 64 | |
| 65 | # alias name is not rendered because subquery is not |
| 66 | # in the context of a FROM clause |
| 67 | self.assert_compile( |
| 68 | lateral(subq, name="alias"), |
| 69 | "LATERAL (SELECT people.people_id FROM people)", |
| 70 | ) |
| 71 | |
| 72 | self.assert_compile( |
| 73 | subq.lateral(name="alias"), |
| 74 | "LATERAL (SELECT people.people_id FROM people)", |
| 75 | ) |
| 76 | |
| 77 | def test_standalone_implicit_subquery(self): |
| 78 | table1 = self.tables.people |
nothing calls this directly
no test coverage detected