From 03e4ea5290ea4237474d9fd0c59e6bbb7e494fcb Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 15 Oct 2010 19:00:46 -0700 Subject: clear cache before resetting the connection --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 3bd5acb23d..4fd24ff857 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -250,8 +250,8 @@ module ActiveRecord # Close then reopen the connection. def reconnect! if @connection.respond_to?(:reset) - @connection.reset clear_cache! + @connection.reset configure_connection else disconnect! -- cgit v1.2.3