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

we should wrap strings as sql literals

This commit is contained in:
Aaron Patterson 2010-08-19 10:35:01 -07:00
parent 57d5cd258e
commit a70248c3d8

View file

@ -229,7 +229,7 @@ module ActiveRecord
arel.project(selects.last)
end
else
arel.project(@klass.quoted_table_name + '.*')
arel.project(Arel::SqlLiteral.new(@klass.quoted_table_name + '.*'))
end
end