(self)
| 4707 | ) |
| 4708 | |
| 4709 | def test_issue_5470_four(self): |
| 4710 | User = self.classes.User |
| 4711 | |
| 4712 | expr = (User.id + literal(1)).label("label") |
| 4713 | |
| 4714 | sess = fixture_session() |
| 4715 | q = ( |
| 4716 | sess.query(expr) |
| 4717 | .select_from(User) |
| 4718 | .order_by(asc("label")) |
| 4719 | .distinct() |
| 4720 | ) |
| 4721 | |
| 4722 | # no double col in the select list, |
| 4723 | # orders by the label |
| 4724 | self.assert_compile( |
| 4725 | q, |
| 4726 | "SELECT DISTINCT users.id + :param_1 AS label " |
| 4727 | "FROM users ORDER BY label ASC", |
| 4728 | ) |
| 4729 | |
| 4730 | def test_issue_5470_five(self): |
| 4731 | User = self.classes.User |
nothing calls this directly
no test coverage detected