This project is archived and is in readonly mode.

#1787 ✓stale
Rob Holland

busy_handler support for sqlite adapter

Reported by Rob Holland | January 21st, 2009 @ 12:48 PM | in 2.x

The sqlite adapter supports busy_timeout, but doesn't allow the setting of the more flexible busy_handler setting. This is useful to allow trying up to x number of times before bailing (amongst other things).

This allows usage such as:

{ :adapter => 'sqlite3', :busy_handler => do |data, retries|

# Give up after 10 retries
if retries > 10

end }

Comments and changes to this ticket

  • Pratik

    Pratik March 12th, 2009 @ 03:27 PM

    • State changed from “new” to “incomplete”
    • Assigned user set to “Michael Koziarski”

    Probably needs some tests. Also you should rebase the patch into a single patch and upload as a .diff file.


  • CancelProfileIsBroken

    CancelProfileIsBroken August 5th, 2009 @ 03:28 PM

    • Tag changed from activerecord, patch, sqlite_adapter to activerecord, bugmash, patch, sqlite_adapter
  • Rizwan Reza

    Rizwan Reza January 20th, 2010 @ 11:09 AM

    • Tag changed from activerecord, bugmash, patch, sqlite_adapter to activerecord, patch, sqlite_adapter
    • State changed from “incomplete” to “stale”
    • Assigned user cleared.

    Please upload the updated patch. I'm closing it for now.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>