Sha256: 8653f54564440db378b3dddf4c03963d06dbb3716938600a227e5f2dacd7103e

Contents?: true

Size: 426 Bytes

Versions: 6

Compression:

Stored size: 426 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    class RedshiftSQLTypeMetadata < PostgreSQLTypeMetadata
      attr_reader :encoding

      def initialize(type_metadata, oid: nil, fmod: nil, encoding: nil)
        super(type_metadata, oid: oid, fmod: fmod)
        @encoding = encoding unless encoding == 'none'
      end

      protected

      def attributes_for_hash
        super << encoding
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
postshift-0.3.0 lib/active_record/connection_adapters/redshift/type_metadata.rb
postshift-0.2.1 lib/active_record/connection_adapters/redshift/type_metadata.rb
postshift-0.2.0 lib/active_record/connection_adapters/redshift/type_metadata.rb
postshift-0.1.2 lib/active_record/connection_adapters/redshift/type_metadata.rb
postshift-0.1.1 lib/active_record/connection_adapters/redshift/type_metadata.rb
postshift-0.1.0 lib/active_record/connection_adapters/redshift/type_metadata.rb