This project is archived and is in readonly mode.

#2397 ✓resolved

serialized attributes clobbered on partial updates

Reported by Fjan | April 2nd, 2009 @ 09:07 AM

This issue caused a serious database corruption for me. If you partially retrieve an object from the database with :select and then save it, any serialized attributes that were NOT in the original select will be set to nil!

This is bound to trip people up because serialized attributes are expensive and are prime targets to leave in the database if you don't need them. And my tests missed it because you don't find out the data is gone until you try to read it back in. As far as I can tell this is malfunctioning of the "dirty" tracking.

Comments and changes to this ticket

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>


Referenced by