Sha256: ad9c837667bf69101d4a6bc9104eb0bc4d09c2946e31f673f047974aafdf03d3

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 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
      def supports_count_distinct? #:nodoc:
        false
      end
      
      def concat(*columns)
        "(#{columns.join('||')})"
      end
      
    end
  end
end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-1.1.4 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.1.6 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.1.5 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.1.7 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb