This project is archived and is in readonly mode.
ActiveRecord::Base.touch won't dump optimistic locking column.
Reported by jlewalle (at gmail) | August 30th, 2010 @ 11:21 PM
Calling touch on an object to increase the updated_at won't increase the optimistic locking column.
From a quick glance over the history I think that this:
http://github.com/rails/rails/commit/e4943e93c2571cba8630eec2e77000...
is the source of my problem... Bypassing update_attribute won't allow the optimistic locking's update to be called.
I am very eager to start using v3 and this is a major stumbling block for me.
Comments and changes to this ticket
-
jlewalle (at gmail) August 30th, 2010 @ 11:22 PM
I'll hold off on attempting to fix this on my own until I've got some feedback.
-
Neeraj Singh August 31st, 2010 @ 02:10 AM
- Assigned user set to José Valim
- Importance changed from to Low
Let's see what Mr. Valim has to say on this one.
-
José Valim September 2nd, 2010 @ 10:49 AM
Optimistic locking should be updated! Probably just adding it as after_touch callback should fix it!
-
Cesario November 27th, 2010 @ 10:20 AM
- Tag changed from activerecord locking touch to activerecord locking touch, 3.0, patch
LH doesnt like me (or at least having me attach a patch :)) : https://github.com/rails/rails/pull/119
Patch and tests are provided again master. -
Repository February 9th, 2011 @ 08:32 PM
- State changed from new to resolved
(from [9d8fdfec38a145e3f5074fd8dc0216630c268e32]) removed some duplication from LH issue 5505 regarding AR touch and optimistic locking [#5505 state:resolved]
Signed-off-by: Santiago Pastorino and José Ignacio Costa santiago+jose@wyeworks.com
https://github.com/rails/rails/commit/9d8fdfec38a145e3f5074fd8dc021...
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>
People watching this ticket
Referenced by
- 5505 ActiveRecord::Base.touch won't dump optimistic locking column. (from [9d8fdfec38a145e3f5074fd8dc0216630c268e32]) removed...