Sha256: 45defc5a77f98615383caae41d56550f97999dfc5dbe1ff15303e7e5483b4811

Contents?: true

Size: 407 Bytes

Versions: 194

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

194 entries across 189 versions & 17 rubygems

Version Path
activerecord-6.1.7.6 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.7.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-6.1.7.5 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.7 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.6 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.5.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-6.1.7.4 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.5 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.4.3 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-6.1.7.3 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-6.1.7.2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.4.2 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-7.0.4.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb
activerecord-6.1.7.1 lib/active_record/connection_adapters/postgresql/oid/bytea.rb