Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Address an error for test_has_many_through_polymorphic_has_one with Oracle #5640

Merged
merged 1 commit into from

3 participants

Commits on Mar 28, 2012
  1. @yahonda

    Change the order argument from ('id') to ('taggings.id')

    yahonda authored
    to address ORA-00918 error
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/associations/join_model_test.rb
View
2  activerecord/test/cases/associations/join_model_test.rb
@@ -403,7 +403,7 @@ def test_has_many_through_has_many_find_by_id
end
def test_has_many_through_polymorphic_has_one
- assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).tagging.order(:id)
+ assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).tagging.order('taggings.id')
end
def test_has_many_through_polymorphic_has_many
Something went wrong with that request. Please try again.