[Sqlalchemy-tickets] Issue #3525: On bulk update, the state is discarded at some point, causing an
Brought to you by:
zzzeek
|
From: Berislav L. <iss...@bi...> - 2015-09-05 00:09:44
|
New issue 3525: On bulk update, the state is discarded at some point, causing an exception https://bitbucket.org/zzzeek/sqlalchemy/issues/3525/on-bulk-update-the-state-is-discarded-at Berislav Lopac: I've asked about this issue on Stack Overflow: http://stackoverflow.com/questions/32407210/sqlalchemy-nonetype-object-has-no-attribute-expire-attributes-on-bulk-upda However, I kept digging and have chased it to the `persistence._bulk_update` function, which replaces all states with `None`, causing the error shown in the SO question above. I've thrown together a brief patch which seems to fix the issue; will see if I can make a pull request out of it. |