(self)
| 4640 | |
| 4641 | @testing.emits_warning("Column-expression-level unary distinct") |
| 4642 | def test_standalone_w_subquery(self): |
| 4643 | # additional test for #6008 |
| 4644 | User = self.classes.User |
| 4645 | |
| 4646 | q = fixture_session().query(distinct(User.id)) |
| 4647 | subq = q.subquery() |
| 4648 | q = fixture_session().query(subq).order_by(subq.c[0]) |
| 4649 | eq_([(7,), (8,), (9,), (10,)], q.all()) |
| 4650 | |
| 4651 | def test_no_automatic_distinct_thing_w_future(self): |
| 4652 | User = self.classes.User |