diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:35:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-19 10:35:09 -0700 |
commit | a70248c3d8eaf70422c1bcf1b571e937de95baee (patch) | |
tree | c3964400e864c6113d39d6cbc6c11b7f122731fd | |
parent | 57d5cd258ec2d50e59deb6ec1b62352af7c2894f (diff) | |
download | rails-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.rb | 2 |
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 |