Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Inherits:
AbstractAdapter
  • Object
show all
Defined in:
lib/rapns/patches/rails/3.1.0/postgresql_adapter.rb,
lib/rapns/patches/rails/3.1.1/postgresql_adapter.rb

Defined Under Namespace

Classes: StatementPool

Instance Method Summary collapse

Instance Method Details

#clear_cache!Object



4
5
6
7
8
9
# File 'lib/rapns/patches/rails/3.1.0/postgresql_adapter.rb', line 4

def clear_cache!
  @statements.each_value do |value|
    @connection.query "DEALLOCATE #{value}" if active?
  end
  @statements.clear
end