aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2017-02-27 21:05:21 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2017-02-27 22:00:00 +0000
commit615f96dd27b2651e5d8280032d1ffa03e43968e5 (patch)
tree3ef8aba8c2823524ae0972b067be5a98dc41c5f4 /activerecord
parent4cc1c14493e7a9bd188ee13c237366f6bc2e13f4 (diff)
downloadrails-615f96dd27b2651e5d8280032d1ffa03e43968e5.tar.gz
rails-615f96dd27b2651e5d8280032d1ffa03e43968e5.tar.bz2
rails-615f96dd27b2651e5d8280032d1ffa03e43968e5.zip
Oracle database also does not allow aliases in the having clause
Follow up #28183
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/calculations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb
index edf7ce0bca..f018156cfc 100644
--- a/activerecord/test/cases/calculations_test.rb
+++ b/activerecord/test/cases/calculations_test.rb
@@ -249,7 +249,7 @@ class CalculationsTest < ActiveRecord::TestCase
end
def test_should_group_by_summed_field_having_condition_from_select
- skip if current_adapter?(:PostgreSQLAdapter)
+ skip if current_adapter?(:PostgreSQLAdapter, :OracleAdapter)
c = Account.select("MIN(credit_limit) AS min_credit_limit").group(:firm_id).having("min_credit_limit > 50").sum(:credit_limit)
assert_nil c[1]
assert_equal 60, c[2]