diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-10-13 08:52:33 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-10-13 08:52:33 +0000 |
commit | 2c6b6e2866c89b8158811c649c5292eda5d24012 (patch) | |
tree | 2914d243ed4bcbc66e5b5a6dbcb4a2d85a587a10 /activerecord/test/associations_test.rb | |
parent | e789b26e652d9f0ee6ca538615b8d570cb4c91b5 (diff) | |
download | rails-2c6b6e2866c89b8158811c649c5292eda5d24012.tar.gz rails-2c6b6e2866c89b8158811c649c5292eda5d24012.tar.bz2 rails-2c6b6e2866c89b8158811c649c5292eda5d24012.zip |
automatically add primary key to #select_limited_ids_list order by clause for databases that require order columns in the distinct statements (postgresql) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/associations_test.rb')
-rwxr-xr-x | activerecord/test/associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index a955a29fc1..d033ef087a 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1793,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 => 'projects.id, developers.created_at'}, join_dep) + projects = Project.send(:select_limited_ids_list, {:order => 'developers.created_at'}, join_dep) assert_equal "'1', '2'", projects end end |