aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-10-03 21:35:01 +0200
committerMichael Koziarski <michael@koziarski.com>2008-10-03 21:35:01 +0200
commit7553a23c0a84424bdbc09cc81791f41bfebe1b25 (patch)
tree5f98e7c320f4eb2e1d0309353fe1f4684a1e19ea /activerecord
parent00e2ba76b21d3c433a0ecda0de28d931c34d1791 (diff)
downloadrails-7553a23c0a84424bdbc09cc81791f41bfebe1b25.tar.gz
rails-7553a23c0a84424bdbc09cc81791f41bfebe1b25.tar.bz2
rails-7553a23c0a84424bdbc09cc81791f41bfebe1b25.zip
Remove AS for oracle compatibility
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/calculations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/calculations.rb b/activerecord/lib/active_record/calculations.rb
index 80992dd34b..634236e959 100644
--- a/activerecord/lib/active_record/calculations.rb
+++ b/activerecord/lib/active_record/calculations.rb
@@ -217,7 +217,7 @@ module ActiveRecord
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