Sha256: f4a59a4decfcae54e19c545e9a18a431523cbe7fae97813d4d5082141091a5b6

Contents?: true

Size: 745 Bytes

Versions: 12

Compression:

Stored size: 745 Bytes

Contents

print "Using native Oracle Enhanced\n"

require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')

def connection_string
  "#{SPEC['username']}/#{SPEC['password']}@//#{SPEC['host']}:#{SPEC['port']}/#{SPEC['database']}"
end

# Adapter config setup in locals/database_connections.rb
SPEC = CompositePrimaryKeys::ConnectionSpec[:oracle_enhanced]
ActiveRecord::Base.establish_connection(SPEC)

# Change default options for Oracle Enhanced adapter
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_dates_by_column_name = true
# Change NLS_DATE_FORMAT to non-default format to verify that all tests should pass
ActiveRecord::Base.connection.execute %q{alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
composite_primary_keys-8.1.8 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.7 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.6 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.5 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-9.0.4 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-9.0.2 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-9.0.1 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.4 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-9.0.0 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-9.0.0.beta1 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.3 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-8.1.2 test/connections/native_oracle_enhanced/connection.rb