(self)
| 4691 | ) |
| 4692 | |
| 4693 | def test_issue_5470_three(self): |
| 4694 | User = self.classes.User |
| 4695 | |
| 4696 | expr = (User.id + literal(1)).label("label") |
| 4697 | |
| 4698 | sess = fixture_session() |
| 4699 | q = sess.query(expr).select_from(User).order_by(asc(expr)).distinct() |
| 4700 | |
| 4701 | # no double col in the select list, |
| 4702 | # orders by the label |
| 4703 | self.assert_compile( |
| 4704 | q, |
| 4705 | "SELECT DISTINCT users.id + :param_1 AS label " |
| 4706 | "FROM users ORDER BY label ASC", |
| 4707 | ) |
| 4708 | |
| 4709 | def test_issue_5470_four(self): |
| 4710 | User = self.classes.User |
nothing calls this directly
no test coverage detected