aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/batches.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2011-03-27 09:54:38 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2011-03-29 17:24:55 +0100
commit555d0163897601010ab1305f41ed393ec517b61e (patch)
treeb6ff36c740894b0c52939bdfe6a0b021a5962235 /activerecord/lib/active_record/relation/batches.rb
parenta9dafbb28de3e34c31ebf184fbc4e2042c7ff207 (diff)
downloadrails-555d0163897601010ab1305f41ed393ec517b61e.tar.gz
rails-555d0163897601010ab1305f41ed393ec517b61e.tar.bz2
rails-555d0163897601010ab1305f41ed393ec517b61e.zip
Quote find_in_batches ORDER BY clause [#6620 state:resolved]
Diffstat (limited to 'activerecord/lib/active_record/relation/batches.rb')
-rw-r--r--activerecord/lib/active_record/relation/batches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/batches.rb b/activerecord/lib/active_record/relation/batches.rb
index bf5a60f458..d52b84179f 100644
--- a/activerecord/lib/active_record/relation/batches.rb
+++ b/activerecord/lib/active_record/relation/batches.rb
@@ -83,7 +83,7 @@ module ActiveRecord
private
def batch_order
- "#{table_name}.#{primary_key} ASC"
+ "#{quoted_table_name}.#{quoted_primary_key} ASC"
end
end
end