Re: [sqlalchemy] Assigning to a deferred column

2010-11-04 Thread Michael Bayer
is this a mutable type like PickleType? the previous value should not be loaded otherwise (assuming at least a recent 0.5 or 0.6 version). If so, the mutability flag should be disabled. On Nov 4, 2010, at 7:05 AM, Eoghan Murray wrote: > I have the following: > >objs = > MyTable.query.op

[sqlalchemy] Assigning to a deferred column

2010-11-04 Thread Eoghan Murray
I have the following: objs = MyTable.query.options(defer(Table.potentially_very_long_str_column)).all() for obj in objs: obj.potentially_very_long_str_column = '' At the moment, I'm seeing the assignment in the loop issue the `SELECT potentially_very_long_str_column`, even though