method
cast_bound_value
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::Quoting
cast_bound_value(value)public
Cast a value to be used as a bound parameter of unknown type. For example, MySQL might perform dangerous castings when comparing a string to a number, so this method will cast numbers to string.