Sha256: 6c2e275e6c69454689d68d9b1cf6a346119e621921ff3f0372132ae09683e5aa

Contents?: true

Size: 628 Bytes

Versions: 21

Compression:

Stored size: 628 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
      # RSI: 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)
        "(#{columns.join('||')})"
      end
      
    end
  end
end

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

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
rsim-activerecord-oracle_enhanced-adapter-1.1.9.90 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.1.9.91 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.1.9.92 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.1.9.93 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0.2 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rwc9u-activerecord-oracle_enhanced-adapter-1.1.9.3 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rwc9u-activerecord-oracle_enhanced-adapter-1.1.9.4 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rwc9u-activerecord-oracle_enhanced-adapter-1.1.9.5 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rwc9u-activerecord-oracle_enhanced-adapter-1.2.0 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
rwc9u-oracle-enhanced-1.1.9.4 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1.2 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
saberma-saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.1.9 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.1.8 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb
activerecord-oracle_enhanced-adapter-1.2.1 lib/active_record/connection_adapters/oracle_enhanced_cpk.rb