Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

we should wrap strings as sql literals

  • Loading branch information...
commit a70248c3d8eaf70422c1bcf1b571e937de95baee 1 parent 57d5cd2
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/query_methods.rb
View
2  activerecord/lib/active_record/relation/query_methods.rb
@@ -229,7 +229,7 @@ def build_select(arel, selects)
arel.project(selects.last)
end
else
- arel.project(@klass.quoted_table_name + '.*')
+ arel.project(Arel::SqlLiteral.new(@klass.quoted_table_name + '.*'))
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.