aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-19 10:35:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-19 10:35:09 -0700
commita70248c3d8eaf70422c1bcf1b571e937de95baee (patch)
treec3964400e864c6113d39d6cbc6c11b7f122731fd
parent57d5cd258ec2d50e59deb6ec1b62352af7c2894f (diff)
downloadrails-a70248c3d8eaf70422c1bcf1b571e937de95baee.tar.gz
rails-a70248c3d8eaf70422c1bcf1b571e937de95baee.tar.bz2
rails-a70248c3d8eaf70422c1bcf1b571e937de95baee.zip
we should wrap strings as sql literals
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 0bf0b37900..0b5e9b4fb2 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -229,7 +229,7 @@ module ActiveRecord
arel.project(selects.last)
end
else
- arel.project(@klass.quoted_table_name + '.*')
+ arel.project(Arel::SqlLiteral.new(@klass.quoted_table_name + '.*'))
end
end