#212 ✓resolved
Martin Kihlgren

[patch] [spec] DataObjects Resources create broken SQL if an attribute is updated more than once

Reported by Martin Kihlgren | April 16th, 2008 @ 09:39 AM

Since the @dirty_attributes variable is an Array, and just gets appended with the new attribute, we get SQL where the same column is updated several times. Which (at least) PostgreSQL 8.2.6 dislikes.

This patch makes the Property class hashable (by defining #hash and #eql?), and makes the @dirty_attributes variable a Set, and thereby solves the problem.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket