aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-02-28 13:43:52 +0000
committerGitHub <noreply@github.com>2017-02-28 13:43:52 +0000
commitc971e7f151e76510196bb4ad21c1d7cbb1d0fe96 (patch)
tree7c162c0d5b3f2276510d56bdcd3ad88a6562a782
parentd50380f4e3f9e8d9398c8fdcbe5f52f784d14f5f (diff)
parent615f96dd27b2651e5d8280032d1ffa03e43968e5 (diff)
downloadrails-c971e7f151e76510196bb4ad21c1d7cbb1d0fe96.tar.gz
rails-c971e7f151e76510196bb4ad21c1d7cbb1d0fe96.tar.bz2
rails-c971e7f151e76510196bb4ad21c1d7cbb1d0fe96.zip
Merge pull request #28208 from yahonda/rails28183_oracle
Oracle database also does not allow aliases in the having clause
-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]