提交 2e8e6e58 编写于 作者: A Aaron Patterson

we should mark sql strings as sql literals

上级 5931a1db
......@@ -370,7 +370,7 @@ def find_associated_records(ids, reflection, preload_options)
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],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册