Sha256: dd74ee7059302f7e4bcbe217c9157b03abfc7c6490fac8dd7f33b6b08919ada4

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

class Upsert
  class Connection
    # @private
    module Postgresql
      def bind_value(v)
        case v
        when Hash
          # you must require 'pg_hstore' from the 'pg-hstore' gem yourself
          ::PgHstore.dump(v)[1...-1]
        else
          super
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
upsert-1.1.5 lib/upsert/connection/postgresql.rb
upsert-1.1.4 lib/upsert/connection/postgresql.rb