aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-12-20 21:14:41 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-12-20 21:14:41 +0000
commita8b53f1dbbfde4385d842e6f4b667bf7db638409 (patch)
tree860ac61fa46c96f24581c7252239746946326dbe
parent7f32a85464feb2a5c980e53491e0de83e3666f98 (diff)
downloadrails-a8b53f1dbbfde4385d842e6f4b667bf7db638409.tar.gz
rails-a8b53f1dbbfde4385d842e6f4b667bf7db638409.tar.bz2
rails-a8b53f1dbbfde4385d842e6f4b667bf7db638409.zip
Oracle: fix connection reset failure. Closes #6846.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG2
-rw-r--r--activerecord/lib/active_record/connection_adapters/oracle_adapter.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 8aa0171b43..357a88a6d4 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Oracle: fix connection reset failure. #6846 [leonlleslie]
+
* Subclass instantiation doesn't try to explicitly require the corresponding subclass. #6840 [leei, Jeremy Kemper]
* fix faulty inheritance tests and that eager loading grabs the wrong inheritance column when the class of your association is an STI subclass. Closes #6859 [protocool]
diff --git a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
index cf77dfa7bf..bd09d31ce1 100644
--- a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
@@ -627,7 +627,7 @@ begin
def reset!
logoff rescue nil
begin
- @connection = @factory.new_connection @username, @password, @database, @async
+ @connection = @factory.new_connection @username, @password, @database, @async, @prefetch_rows, @cursor_sharing
__setobj__ @connection
@active = true
rescue