aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorSteve Jorgensen <stevej@renewfund.com>2012-06-06 17:31:23 -0700
committerSteve Jorgensen <stevej@renewfund.com>2012-07-16 09:55:20 -0700
commit6d5f4de4c420ebb906109668f5702a537ac77692 (patch)
tree6efea0f0d5f13af6847c9927a8e23370343a26d8 /activerecord/lib/active_record/connection_adapters
parent0d63cda2d70a1e92e71e7c0f6b96c15dc00da117 (diff)
downloadrails-6d5f4de4c420ebb906109668f5702a537ac77692.tar.gz
rails-6d5f4de4c420ebb906109668f5702a537ac77692.tar.bz2
rails-6d5f4de4c420ebb906109668f5702a537ac77692.zip
Simulated & actual (manual/skipped) PostgreSQL auto-reconnection tests.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index b7f64dba18..71a84011bc 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -474,6 +474,7 @@ module ActiveRecord
def reconnect!
clear_cache!
@connection.reset
+ @open_transactions = 0
configure_connection
end