Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Connection pooling

#936

Connection pooling implementation for ActiveRecord

Reported by Nick Sieger · August 29th, 2008 @ 08:22 PM

State: resolved
Milestone: 2.x
Assigned to: Michael Koziarski Michael Koziarski
Importance: none

Activity

  1. Nick Sieger
  2. Wes Oldenbeuving
    Wes Oldenbeuving

    ConnectionPool.connected?(klass) will raise

    NoMethodError: undefined method 'connected?' for nil:NilClass
    
    

    when there is no connection for the given klass. The attached patch fixes this by returning false when there is no connection. The patch includes a test which exposes the bug.

    November 5th, 2008 @ 06:37 PM

  3. Repository
    Repository
    • State changed from new to resolved

    (from [32089cbcc9ca3fb935f783e7a7ef2b60b7d43006]) Ensure ActiveRecord::ConnectionPool.connected? handles undefined connections. [#936 Connection pooling state:resolved]

    Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

    November 5th, 2008 @ 06:55 PM