aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/connections/native_oracle/connection.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:06:00 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:06:00 +0000
commit336c2cbb8f728825139f2ab94b96726935ea18a1 (patch)
tree1943ecb94336aae84d458a97bd376306dac1118d /activerecord/test/connections/native_oracle/connection.rb
parent8382e6e50681fef860fb2856af12fa72853a8488 (diff)
downloadrails-336c2cbb8f728825139f2ab94b96726935ea18a1.tar.gz
rails-336c2cbb8f728825139f2ab94b96726935ea18a1.tar.bz2
rails-336c2cbb8f728825139f2ab94b96726935ea18a1.zip
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
Diffstat (limited to 'activerecord/test/connections/native_oracle/connection.rb')
-rw-r--r--activerecord/test/connections/native_oracle/connection.rb24
1 files changed, 24 insertions, 0 deletions
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
+)