[Sqlalchemy-tickets] Issue #3991: session.refresh() / load_on_ident() still hardwired to "deprecate
Brought to you by:
zzzeek
From: Michael B. <iss...@bi...> - 2017-05-15 13:39:20
|
New issue 3991: session.refresh() / load_on_ident() still hardwired to "deprecated" with_lockmode() https://bitbucket.org/zzzeek/sqlalchemy/issues/3991/sessionrefresh-load_on_ident-still Michael Bayer: we deprecated with_lockmode() in 0.9 but session.refresh() still codes to it. linking refresh() to with_for_update() might be awkward due to the flags, probably have a dictionary passed in using kw argument with_for_update. however, awkward to say `session.refresh(obj, with_for_update={})` and that means FOR UPDATE since empty dict implies boolean false. |