Skip to content

Commit c971e7f

Browse files
authored
Merge pull request rails#28208 from yahonda/rails28183_oracle
Oracle database also does not allow aliases in the having clause
2 parents d50380f + 615f96d commit c971e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/calculations_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def test_should_group_by_summed_field_having_condition
249249
end
250250

251251
def test_should_group_by_summed_field_having_condition_from_select
252-
skip if current_adapter?(:PostgreSQLAdapter)
252+
skip if current_adapter?(:PostgreSQLAdapter, :OracleAdapter)
253253
c = Account.select("MIN(credit_limit) AS min_credit_limit").group(:firm_id).having("min_credit_limit > 50").sum(:credit_limit)
254254
assert_nil c[1]
255255
assert_equal 60, c[2]

0 commit comments

Comments
 (0)