Sha256: 45defc5a77f98615383caae41d56550f97999dfc5dbe1ff15303e7e5483b4811

Contents?: true

Size: 407 Bytes

Versions: 193

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Bytea < Type::Binary # :nodoc:
          def deserialize(value)
            return if value.nil?
            return value.to_s if value.is_a?(Type::Binary::Data)
            PG::Connection.unescape_bytea(super)
          end
        end
      end
    end
  end
end

Version data entries

193 entries across 188 versions & 16 rubygems

Version Path
activerecord-6.0.0.beta1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
nullifyable-0.1.0 vendor/bundle/gems/activerecord-5.2.2/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.2.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.1.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.1.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.0 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.0.rc2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.0.rc1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.0.beta2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-5.2.0.beta1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
ruby-on-quails-0.1.0 activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb