Why is SQLAlchemy execute Update not working

佐手、 提交于 2019-12-04 18:54:10

This looks like you are using zodb transaction manager in pyramid.

You have to mark the session as changed

http://www.upfrontsystems.co.za/Members/izak/sysadman/how-to-commit-a-transaction-even-when-sqlalchemy-thinks-the-session-is-clean

You should do something like

from zope.sqlalchemy import mark_changed
mark_changed(Session)

if that does not work try

from zope.sqlalchemy import ZopeTransactionExtension
Session.configure(extension=ZopeTransactionExtension('changed'))
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!