Skip to content
Browse files

Fix failing test on Oracle. Having a duplicated column specified in a

select with order on the same column makes Oracle complain about "column
ambiguously defined" when an order is defined on such column (introduced
by default order on `first`) (fixes #6147).
  • Loading branch information...
1 parent 7746bf9 commit eea9777e99fe432c9a003a413c27c9476cf38087 @mhfs mhfs committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relation_scoping_test.rb
View
2 activerecord/test/cases/relation_scoping_test.rb
@@ -84,7 +84,7 @@ def test_scoped_find_select
def test_scope_select_concatenates
Developer.select("id, name").scoping do
- developer = Developer.select('id, salary').where("name = 'David'").first
+ developer = Developer.select('salary').where("name = 'David'").first
assert_equal 80000, developer.salary
assert developer.has_attribute?(:id)
assert developer.has_attribute?(:name)

0 comments on commit eea9777

Please sign in to comment.
Something went wrong with that request. Please try again.