This project is archived and is in readonly mode.
Fix AR::Base.quote_bound_value for AS::M::Chars values
Reported by Manfred Stienstra | September 11th, 2008 @ 09:43 PM | in 2.x
Because of an explicit check on the String class Chars objects got mapped and quoted instead of just quoted.
So quote_bound_value("A\nB".chars)
got converted to
"'A','B'"
.
This patch adds String#acts_like_string? and AS::M::Chars#acts_like_string? to solve this in a maintainable manner.
Related to: #980
Comments and changes to this ticket
-
Frederick Cheung December 14th, 2008 @ 11:09 PM
- State changed from new to committed
Was committed in babbc1580da9e4a23921ab68d47c7c0d2e8447da
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>