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

Merge pull request #37646 from yahonda/diag_oracle_enhanced_1943

Address `no implicit conversion of Arel::Attributes::Attribute into String`
This commit is contained in:
Ryuta Kamizono 2019-11-06 17:15:54 +09:00 committed by GitHub
commit 803c6ba7b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ module Arel # :nodoc: all
return o if o.orders.empty?
return o unless o.cores.any? do |core|
core.projections.any? do |projection|
/FIRST_VALUE/.match?(projection)
/FIRST_VALUE/ === projection
end
end
# Previous version with join and split broke ORDER BY clause