From 10d458b0aadc9f44bfadda6e59d08be8ea661029 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Feb 2005 13:34:57 +0000 Subject: Added a OCI8-based Oracle adapter that has been verified to work with Oracle 8 and 9 #629 [Graham Jenkins]. Removed Maiks Oracle adapter until it can be merged with the OCI one. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../test/connections/native_oci/connection.rb | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 activerecord/test/connections/native_oci/connection.rb (limited to 'activerecord/test/connections/native_oci') diff --git a/activerecord/test/connections/native_oci/connection.rb b/activerecord/test/connections/native_oci/connection.rb new file mode 100644 index 0000000000..2d9006c231 --- /dev/null +++ b/activerecord/test/connections/native_oci/connection.rb @@ -0,0 +1,25 @@ +print "Using OCI Oracle\n" +require 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new STDOUT +ActiveRecord::Base.logger.level = Logger::WARN + +db1 = 'activerecord_unittest' +db2 = 'activerecord_unittest2' + +ActiveRecord::Base.establish_connection( + :adapter => 'oci', + :host => '', # can use an oracle SID + :username => 'arunit', + :password => 'arunit', + :database => db1 +) + +Course.establish_connection( + :adapter => 'oci', + :host => '', # can use an oracle SID + :username => 'arunit2', + :password => 'arunit2', + :database => db2 +) -- cgit v1.2.3