Changes between Initial Version and Version 1 of Ticket #34123, comment 5


Ignore:
Timestamp:
Oct 27, 2022, 1:08:11 PM (2 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34123, comment 5

    initial v1  
    33I'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.
    44
    5 From some initial testing it might require a bit of adjustments in `SQLCompiler.get_order_by` as well.
     5From 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)`.
Back to Top