Browse files

Remove AS for oracle compatibility

  • Loading branch information...
1 parent 00e2ba7 commit 7553a23c0a84424bdbc09cc81791f41bfebe1b25 @NZKoz NZKoz committed Oct 3, 2008
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

0 comments on commit 7553a23

Please sign in to comment.