Re: [Sqlalchemy-tickets] [sqlalchemy] #1601: issue modified_event after attribute extensions
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2009-11-02 22:18:16
|
#1601: issue modified_event after attribute extensions ----------------------------+----------------------------------------------- Reporter: zzzeek | Owner: zzzeek Type: defect | Status: new Priority: high | Milestone: 0.6.0 Component: orm | Severity: minor - half an hour Resolution: | Keywords: Status_field: needs tests | ----------------------------+----------------------------------------------- Comment (by zzzeek): with the patch, the test fails differently: {{{ sqlalchemy.orm.exc.ConcurrentModificationError: Updated rowcount 0 does not match number of objects updated 1 }}} workaround is to call session.query(...).autoflush(False) when querying inside of an AttributeExtension. -- Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1601#comment:1> sqlalchemy <http://www.sqlalchemy.org/> The Database Toolkit for Python |