aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMarcelo Silveira <marcelo@mhfs.com.br>2012-05-07 13:38:37 -0300
committerMarcelo Silveira <marcelo@mhfs.com.br>2012-05-07 13:38:37 -0300
commiteea9777e99fe432c9a003a413c27c9476cf38087 (patch)
tree3102e73747a73b7172e172c008d4acc61a638fa1 /activerecord
parent7746bf9a71804a2994f4e5c37faa3075efe1aec2 (diff)
downloadrails-eea9777e99fe432c9a003a413c27c9476cf38087.tar.gz
rails-eea9777e99fe432c9a003a413c27c9476cf38087.tar.bz2
rails-eea9777e99fe432c9a003a413c27c9476cf38087.zip
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).
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/relation_scoping_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation_scoping_test.rb b/activerecord/test/cases/relation_scoping_test.rb
index 342f7a86fa..3462fd99bd 100644
--- a/activerecord/test/cases/relation_scoping_test.rb
+++ b/activerecord/test/cases/relation_scoping_test.rb
@@ -84,7 +84,7 @@ class RelationScopingTest < ActiveRecord::TestCase
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)