(self)
| 102 | ) |
| 103 | |
| 104 | def test_alias_of_lateral(self): |
| 105 | table1 = self.tables.people |
| 106 | subq = select(table1.c.people_id).subquery() |
| 107 | |
| 108 | # this use case wasn't working until we changed the name of the |
| 109 | # "lateral" name to "lateral_" in compiler.visit_lateral(), was |
| 110 | # conflicting with the kwarg before |
| 111 | self.assert_compile( |
| 112 | select(subq.lateral().alias(name="alias")), |
| 113 | "SELECT alias.people_id FROM LATERAL " |
| 114 | "(SELECT people.people_id AS people_id FROM people) AS alias", |
| 115 | ) |
| 116 | |
| 117 | def test_select_from_implicit_subquery(self): |
| 118 | table1 = self.tables.people |
nothing calls this directly
no test coverage detected