Skip to content

Commit

Permalink
Remove AS for oracle compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
NZKoz committed Oct 3, 2008
1 parent 7823c50 commit 6370ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/calculations.rb
Expand Up @@ -217,7 +217,7 @@ def construct_calculation_sql(operation, column_name, options) #:nodoc:

sql << " ORDER BY #{options[:order]} " if options[:order]
add_limit!(sql, options, scope)
sql << ") AS #{aggregate_alias}_subquery" if use_workaround
sql << ") #{aggregate_alias}_subquery" if use_workaround
sql
end

Expand Down

0 comments on commit 6370ff3

Please sign in to comment.