aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/connections/native_oci
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 13:34:57 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-23 13:34:57 +0000
commit10d458b0aadc9f44bfadda6e59d08be8ea661029 (patch)
treeca3e05adcad2b82b7a0d85ed869c0b727065e7e0 /activerecord/test/connections/native_oci
parent6329daf5acc8f5f2f040cf46f33098fb21a622b5 (diff)
downloadrails-10d458b0aadc9f44bfadda6e59d08be8ea661029.tar.gz
rails-10d458b0aadc9f44bfadda6e59d08be8ea661029.tar.bz2
rails-10d458b0aadc9f44bfadda6e59d08be8ea661029.zip
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
Diffstat (limited to 'activerecord/test/connections/native_oci')
-rw-r--r--activerecord/test/connections/native_oci/connection.rb25
1 files changed, 25 insertions, 0 deletions
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
+)