sql literal strings should be marked as sql literal strings
This commit is contained in:
parent
ee9e1570be
commit
5931a1dbd3
|
@ -121,8 +121,10 @@ module ActiveRecord
|
|||
when Hash, Array, Symbol
|
||||
if array_of_strings?(join)
|
||||
join_string = join.join(' ')
|
||||
arel = arel.join(join_string)
|
||||
arel = arel.join(Arel::SqlLiteral.new(join_string))
|
||||
end
|
||||
when String
|
||||
arel = arel.join(Arel::SqlLiteral.new(join))
|
||||
else
|
||||
arel = arel.join(join)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue