1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

we should mark sql strings as sql literals

This commit is contained in:
Aaron Patterson 2010-08-23 14:27:16 -07:00
parent 5931a1dbd3
commit 2e8e6e581f

View file

@ -370,7 +370,7 @@ module ActiveRecord
conditions << append_conditions(reflection, preload_options)
find_options = {
:select => preload_options[:select] || options[:select] || "#{table_name}.*",
:select => preload_options[:select] || options[:select] || Arel::SqlLiteral.new("#{table_name}.*"),
:include => preload_options[:include] || options[:include],
:conditions => [conditions, ids],
:joins => options[:joins],