This project is archived and is in readonly mode.
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 => Proc.new do |data, retries|
# Give up after 10 retries
if retries > 10
0
else
sleep(0.5)
1
end
end }
Comments and changes to this ticket
-
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.
Thanks.
-
CancelProfileIsBroken August 5th, 2009 @ 03:28 PM
- Tag changed from activerecord, patch, sqlite_adapter to activerecord, bugmash, patch, sqlite_adapter
-
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>