We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94261fe commit 9f5313dCopy full SHA for 9f5313d
lib/active_record/connection_adapters/sqlserver/core_ext/calculations.rb
@@ -41,7 +41,7 @@ def _calculate(operation, column_name)
41
if operation == "count"
42
unless distinct_value || distinct_select?(column_name || select_for_count)
43
relation.distinct!
44
- relation.select_values = [ klass.primary_key || table[Arel.star] ]
+ relation.select_values = Array(klass.primary_key || table[Arel.star])
45
end
46
# PostgreSQL: ORDER BY expressions must appear in SELECT list when using DISTINCT
47
# Start of monkey-patch
0 commit comments