Changes between Initial Version and Version 1 of Ticket #34123, comment 5
- Timestamp:
- Oct 27, 2022, 1:08:11 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34123, comment 5
initial v1 3 3 I'm pretty convinced the solution lies in using `with_col_aliases=True` and as long as the ordering clause is adjusted to refer to the column alias of the left-most query (the one combining the others) then it should work. 4 4 5 From some initial testing it might require a bit of adjustments in `SQLCompiler.get_order_by` a s well.5 From some initial testing it might require a bit of adjustments in `SQLCompiler.get_order_by` and `as_sql` when `self.pre_sql_setup` is called so `with_col_aliases=with_col_aliases or bool(self.query.combinator)`.