aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-10-13 08:29:00 +0000
committerRick Olson <technoweenie@gmail.com>2006-10-13 08:29:00 +0000
commite789b26e652d9f0ee6ca538615b8d570cb4c91b5 (patch)
treed9c53e9f1668ecf144ebe23d8388c58d6549c8a5 /activerecord/test
parentce1d14430f3ff5c8743541ce5f10b71a083f9c90 (diff)
downloadrails-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-xactiverecord/test/associations_test.rb3
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