Sha256: 1f456cc8e19b77f72babebb0be704fffc2d9c1eba05802fb753c4f0005e5a79b

Contents?: true

Size: 620 Bytes

Versions: 5

Compression:

Stored size: 620 Bytes

Contents

module ActiveRecord #:nodoc:
  module ConnectionAdapters #:nodoc:
    module OracleEnhancedCpk #:nodoc:
      # This mightn't be in Core, but count(distinct x,y) doesn't work for me.
      # Return that not supported if composite_primary_keys gem is required.
      def supports_count_distinct? #:nodoc:
        @supports_count_distinct ||= ! defined?(CompositePrimaryKeys)
      end

      def concat(*columns) #:nodoc:
        "(#{columns.join('||')})"
      end
    end
  end
end

ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
  include ActiveRecord::ConnectionAdapters::OracleEnhancedCpk
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-1.7.11 lib/active_record/connection_adapters/oracle_enhanced/cpk.rb
activerecord-oracle_enhanced-adapter-1.8.0.beta1 lib/active_record/connection_adapters/oracle_enhanced/cpk.rb
activerecord-oracle_enhanced-adapter-1.7.10 lib/active_record/connection_adapters/oracle_enhanced/cpk.rb
activerecord-oracle_enhanced-adapter-1.7.9 lib/active_record/connection_adapters/oracle_enhanced/cpk.rb
activerecord-oracle_enhanced-adapter-1.7.8 lib/active_record/connection_adapters/oracle_enhanced/cpk.rb