(self)
| 321 | ) |
| 322 | |
| 323 | def test_from_function(self): |
| 324 | bookcases = self.tables.bookcases |
| 325 | srf = lateral(func.generate_series(1, bookcases.c.bookcase_shelves)) |
| 326 | |
| 327 | self.assert_compile( |
| 328 | select(bookcases).select_from(bookcases.join(srf, true())), |
| 329 | "SELECT bookcases.bookcase_id, bookcases.bookcase_owner_id, " |
| 330 | "bookcases.bookcase_shelves, bookcases.bookcase_width " |
| 331 | "FROM bookcases JOIN " |
| 332 | "LATERAL generate_series(:generate_series_1, " |
| 333 | "bookcases.bookcase_shelves) AS anon_1 ON true", |
| 334 | ) |
| 335 | |
| 336 | def test_no_alias_construct(self): |
| 337 | a = table("a", column("x")) |
nothing calls this directly
no test coverage detected