This project is archived and is in readonly mode.
Optimistic Locking and Double Quoting of Strings
-
Christopher Meiklejohn
Just wondering if someone had a chance to take a look at the included patch?
-
jgpawletko
I just confirmed the same bug as Christopher Meiklejohn.
(Thank you Christopher for the fix.)As of this writing the problem does not appear to be fixed in the current 3.0-stable release of rails.
https://github.com/rails/rails/blob/3-0-stable/activerecord/lib/act...
line 91.(rdb:2) pp quoted_id "'64536156-E2F3-4659-BB55-483FA43BF672'" (rdb:2) pp relation.where(relation.table[self.class.primary_key].eq(quoted_id)) [] (rdb:2) pp relation.where(relation.table[self.class.primary_key].eq('64536156-E2F3-4659-BB55-483FA43BF672')) [#]
