Skip to content

Commit

Permalink
allow partial support for filtering against window functions (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
maikhanhbui authored Mar 23, 2023
1 parent e196f5a commit 5a630ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mssql/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def as_sql(self, with_limits=True, with_col_aliases=False):
if not getattr(features, 'supports_select_{}'.format(combinator)):
raise NotSupportedError('{} is not supported on this database backend.'.format(combinator))
result, params = self.get_combinator_sql(combinator, self.query.combinator_all)
elif django.VERSION >= (4, 2) and self.qualify:
result, params = self.get_qualify_sql()
order_by = None
else:
distinct_fields, distinct_params = self.get_distinct()
# This must come after 'select', 'ordering', and 'distinct' -- see
Expand Down

0 comments on commit 5a630ba

Please sign in to comment.