This project is archived and is in readonly mode.
Pessimistic locking in rails 3.0.3
Reported by noodl | November 27th, 2010 @ 02:34 PM
Trying to use either the lock! method, or the :lock => true argument to finder methods, AR no longer performs a SELECT ... FOR UPDATE query. In all cases I'm calling these methods within the scope of a transaction.
I'm using the mysql2 gem and my app was created only today using rails 3.0.3 and ruby 1.9.2-p0.
Comments and changes to this ticket
-
Denis Odorcic November 27th, 2010 @ 07:13 PM
Fixed in Arel (https://github.com/rails/arel/commit/3e928ee400d083e7391474c61c8fce...)
If you specifygem 'arel', :git => 'git://github.com/rails/arel.git'
in your Gemfile you shouldn't run into the problem anymore as far as I can tell.
-
Aditya Sanghi November 29th, 2010 @ 01:30 PM
- State changed from new to resolved
- Importance changed from to Low
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>