diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-10-13 08:29:00 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-10-13 08:29:00 +0000 |
commit | e789b26e652d9f0ee6ca538615b8d570cb4c91b5 (patch) | |
tree | d9c53e9f1668ecf144ebe23d8388c58d6549c8a5 /activerecord/test | |
parent | ce1d14430f3ff5c8743541ce5f10b71a083f9c90 (diff) | |
download | rails-e789b26e652d9f0ee6ca538615b8d570cb4c91b5.tar.gz rails-e789b26e652d9f0ee6ca538615b8d570cb4c91b5.tar.bz2 rails-e789b26e652d9f0ee6ca538615b8d570cb4c91b5.zip |
fix select_limited_ids_list issues in postgresql, retain current behavior in other adapters [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/associations_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index d0a80a0f0f..a955a29fc1 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1783,7 +1783,6 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase assert_equal projects(:action_controller), developer.projects[1] end - # this bug highlights an issue in postgresql. fixed in edge, but i had to rollback in [5265]. def test_select_limited_ids_list # Set timestamps Developer.transaction do @@ -1794,7 +1793,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase join_base = ActiveRecord::Associations::ClassMethods::JoinDependency::JoinBase.new(Project) join_dep = ActiveRecord::Associations::ClassMethods::JoinDependency.new(join_base, :developers, nil) - projects = Project.send(:select_limited_ids_list, {:order => 'developers.created_at'}, join_dep) + projects = Project.send(:select_limited_ids_list, {:order => 'projects.id, developers.created_at'}, join_dep) assert_equal "'1', '2'", projects end end |