- attached patch-uow-session_or_update.diff
UOWEventHandler raises SAPendingDeprecationWarning in 0.5rc2
Issue #1208
resolved
Hello,
as http://www.sqlalchemy.org/trac/wiki/05Migration says, session.save_or_update() is deprecated in favor of session.add()
However, sqlalchemy.orm.unitofwork.UOWEventHandler still uses save_or_update, and so, it prints a warning on the console.
The fix is trivial, but a diff is attached to this ticket.
Thanks!
Comments (3)
-
Account Deleted -
-
repo owner - removed milestone
Removing milestone: 0.5.0 (automated comment)
- Log in to comment
Fixed SAPendingDeprecationWarning in sqlalchemy/orm/unitofwork.py