Skip to content

Commit

Permalink
Keep ordering if count subquery
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Sep 27, 2024
1 parent 0761353 commit cce2b03
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ module Calculations

private

def build_count_subquery(relation, column_name, distinct)
model.with_connection do |connection|
relation = relation.unscope(:order) if connection.sqlserver?
super(relation, column_name, distinct)
end
end
# def build_count_subquery(relation, column_name, distinct)
# model.with_connection do |connection|
# relation = relation.unscope(:order) if connection.sqlserver?
# super(relation, column_name, distinct)
# end
# end
end
end
end
Expand Down

0 comments on commit cce2b03

Please sign in to comment.