(self)
| 4675 | ) |
| 4676 | |
| 4677 | def test_issue_5470_two(self): |
| 4678 | User = self.classes.User |
| 4679 | |
| 4680 | expr = User.id + literal(1) |
| 4681 | |
| 4682 | sess = fixture_session() |
| 4683 | q = sess.query(expr).select_from(User).order_by(asc(expr)).distinct() |
| 4684 | |
| 4685 | # no double col in the select list, |
| 4686 | # there's no label so this is the requested SQL |
| 4687 | self.assert_compile( |
| 4688 | q, |
| 4689 | "SELECT DISTINCT users.id + :param_1 AS anon_1 " |
| 4690 | "FROM users ORDER BY users.id + :param_1 ASC", |
| 4691 | ) |
| 4692 | |
| 4693 | def test_issue_5470_three(self): |
| 4694 | User = self.classes.User |
nothing calls this directly
no test coverage detected