aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-10-13 08:52:33 +0000
committerRick Olson <technoweenie@gmail.com>2006-10-13 08:52:33 +0000
commit2c6b6e2866c89b8158811c649c5292eda5d24012 (patch)
tree2914d243ed4bcbc66e5b5a6dbcb4a2d85a587a10 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
parente789b26e652d9f0ee6ca538615b8d570cb4c91b5 (diff)
downloadrails-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/lib/active_record/connection_adapters/abstract_adapter.rb')
-rwxr-xr-xactiverecord/lib/active_record/connection_adapters/abstract_adapter.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
index 949b8f7951..b753c248c5 100755
--- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
@@ -56,6 +56,12 @@ module ActiveRecord
false
end
+ # Does this adapter require the order columns to be in the select clause
+ # of a DISTINCT query? This is +false+ in all adapters except postgresql.
+ def requires_order_columns_in_distinct_clause?
+ false
+ end
+
def reset_runtime #:nodoc:
rt, @runtime = @runtime, 0
rt