From 336c2cbb8f728825139f2ab94b96726935ea18a1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Feb 2005 14:06:00 +0000 Subject: Added an Oracle adapter that works with the Oracle bindings by Yoshida (http://raa.ruby-lang.org/project/oracle/) #564 [Maik Schmidt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../test/connections/native_oracle/connection.rb | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 activerecord/test/connections/native_oracle/connection.rb (limited to 'activerecord/test/connections/native_oracle/connection.rb') diff --git a/activerecord/test/connections/native_oracle/connection.rb b/activerecord/test/connections/native_oracle/connection.rb new file mode 100644 index 0000000000..7e4cc5b574 --- /dev/null +++ b/activerecord/test/connections/native_oracle/connection.rb @@ -0,0 +1,24 @@ +print "Using native Oracle\n" +require 'fixtures/course' +require 'logger' + +ActiveRecord::Base.logger = Logger.new("debug.log") + +db1 = 'local' +db2 = 'local' + +ActiveRecord::Base.establish_connection( + :adapter => "oracle", + :host => "localhost", + :username => "arunit", + :password => "arunit", + :database => db1 +) + +Course.establish_connection( + :adapter => "oracle", + :host => "localhost", + :username => "arunit2", + :password => "arunit2", + :database => db2 +) -- cgit v1.2.3