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:
parent
5931a1dbd3
commit
2e8e6e581f
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue