class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool
:nodoc:
def connection_active?
def connection_active? @connection.status == PG::CONNECTION_OK rescue PG::Error false end
def dealloc(key)
def dealloc(key) @connection.query "DEALLOCATE #{key}" if connection_active? rescue PG::Error end
def initialize(connection, max)
def initialize(connection, max) super(max) @connection = connection @counter = 0 end
def next_key
def next_key "a#{@counter += 1}" end