Module: ActiveRecord::ConnectionAdapters::OracleEnhancedCpk

Defined in:
lib/active_record/connection_adapters/oracle_enhanced_cpk.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#concat(*columns) ⇒ Object



11
12
13
# File 'lib/active_record/connection_adapters/oracle_enhanced_cpk.rb', line 11

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

#supports_count_distinct?Boolean

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

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_record/connection_adapters/oracle_enhanced_cpk.rb', line 7

def supports_count_distinct? #:nodoc:
  @supports_count_distinct ||= ! defined?(CompositePrimaryKeys)
end