method

quote_and_escape

quote_and_escape(value)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 72
          def quote_and_escape(value)
            case value
            when ::String
              if string_requires_quoting?(value)
                value = value.gsub(/\\/, ARRAY_ESCAPE)
                value.gsub!(/"/,"\\\"")
                %("#{value}")
              else
                value
              end
            when nil then "NULL"
            else value
            end
          end