Sha256: 585ba6ea7e2c87b4318923dcde3e0c0c75bbe3d2fccf87ce25a6fb0821c06519

Contents?: true

Size: 641 Bytes

Versions: 8

Compression:

Stored size: 641 Bytes

Contents

print "Using native Oracle Enhanced\n"

require 'active_record'

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

# Adapter config setup in locals/database_connections.rb
SPEC = CompositePrimaryKeys::ConnectionSpec[:oracle]
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

8 entries across 8 versions & 1 rubygems

Version Path
composite_primary_keys-3.1.8 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.7 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.6 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.5 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.4 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.2 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.1 test/connections/native_oracle_enhanced/connection.rb
composite_primary_keys-3.1.0 test/connections/native_oracle_enhanced/connection.rb