class ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Range
def unquote(value)
* https://www.postgresql.org/docs/current/rangetypes.html#RANGETYPES-IO
See:
(either \" or "") but in output always uses "".
escaped. In input, PostgreSQL accepts multiple escape styles for "
a double-quoted string, literal " and \ characters are themselves
the bound value using double-quotes in certain conditions. Within
When formatting the bound values of range types, PostgreSQL quotes
def unquote(value) if value.start_with?('"') && value.end_with?('"') unquoted_value = value[1..-2] unquoted_value.gsub!('""', '"') unquoted_value.gsub!("\\\\", "\\") unquoted_value else value end end