Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove AS for oracle compatibility

  • Loading branch information...
commit 6370ff37b1aeb3e9daa49ad65a00c6581b19c9f2 1 parent 7823c50
@NZKoz NZKoz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/calculations.rb
View
2  activerecord/lib/active_record/calculations.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.