I've spent the last few hours tackling a confusing problem in
SQLObject, and thought I might post the experience to help other
TurboGear people.

I have a table, which has a column named 'dirty' of type Boolean.

Something was mysteriously setting this bit to false. I hunted though
all my code, and could not find any code which was generating the
update statement:

    UPDATE xxx SET dirty = ('f') WHERE id = (XXX)

As it turns out, one cannot use a field named 'dirty' in SQLObject
classes, as it is an internal attribute used by SQLObject. Everytime
SQLObject sets this attribute, (which was now a property) it triggered
a SQL update operation.

I renamed the field, and the problem went away.

-Sw


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to