(self)
| 4627 | |
| 4628 | @testing.emits_warning("Column-expression-level unary distinct") |
| 4629 | def test_basic_standalone(self): |
| 4630 | User = self.classes.User |
| 4631 | |
| 4632 | # issue #6008. the UnaryExpression now places itself into the |
| 4633 | # result map so that it can be matched positionally without the need |
| 4634 | # for any label. |
| 4635 | q = fixture_session().query(distinct(User.id)).order_by(User.id) |
| 4636 | self.assert_compile( |
| 4637 | q, "SELECT DISTINCT users.id FROM users ORDER BY users.id" |
| 4638 | ) |
| 4639 | eq_([(7,), (8,), (9,), (10,)], q.all()) |
| 4640 | |
| 4641 | @testing.emits_warning("Column-expression-level unary distinct") |
| 4642 | def test_standalone_w_subquery(self): |
nothing calls this directly
no test coverage detected