What does 'changed' mean?
Does setattr(obj, 'attr', getattr(obj, 'attr')) count as 'changed'?
Chris
On 09/07/2013 15:23, Michael Bayer wrote:
UPDATE only emits for those fields that have changed so no.
On Jul 9, 2013, at 7:49 AM, Chris Withers<[email protected]> wrote:
Hi All,
If I change an attribute of an object to the same value it is currently set to,
when the session is committed, will that trigger an update of the row in the
database?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing& Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.