THX On Jul 6, 4:09 pm, Michael Bayer <[email protected]> wrote: > On Jul 6, 2011, at 10:03 AM, ddarko wrote: > > > t = Session.query(Tests).get(1) > > print(t.array) > > t.array.append(1) > > Session.commit() > > > t.array - is an int. array in postgresql > > > This simple construction does not change the content of the list after > > commit, and it seems to me that it should. > > Of course t.array = t.array + [1] works correctly. > > mutable types are not tracked automatically. > > Please seehttp://www.sqlalchemy.org/docs/orm/extensions/mutable.htmlfor > information on building a list type that tracks mutations and sends change > events (we don't have one built-in yet). > > As a deprecated, poorly performing alternative, the mutable=True flag on the > ARRAY type can be turned on.
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en.
