method

quote_bound_value

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::Quoting
quote_bound_value(value) public

Quote 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.

Deprecated: Consider `Arel.sql(“… ? …”, value)` or sanitize_sql instead.

Show source
Register or log in to add new notes.