aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSebastian Martinez <sebastian@wyeworks.com>2011-04-22 12:14:23 -0300
committerSebastian Martinez <sebastian@wyeworks.com>2011-04-22 12:14:47 -0300
commit20002850b30a2da97cea8e3f2f019826b123fdb6 (patch)
treecccb613d2e5209afc320db9dfaacff2151edacad /activerecord
parent6822f39f67729884d7911b42542c965434a22250 (diff)
downloadrails-20002850b30a2da97cea8e3f2f019826b123fdb6.tar.gz
rails-20002850b30a2da97cea8e3f2f019826b123fdb6.tar.bz2
rails-20002850b30a2da97cea8e3f2f019826b123fdb6.zip
Removed ON() on distinct comment
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index acc3e9c5e3..b7b4ce655e 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -933,7 +933,7 @@ module ActiveRecord
order_columns.delete_if { |c| c.blank? }
order_columns = order_columns.zip((0...order_columns.size).to_a).map { |s,i| "#{s} AS alias_#{i}" }
- # Return a DISTINCT ON() clause that's distinct on the columns we want but includes
+ # Return a DISTINCT clause that's distinct on the columns we want but includes
# all the required columns for the ORDER BY to work properly.
sql = "DISTINCT ON (#{columns}) #{columns}, "
sql << order_columns * ', '