Код: Выделить всё
session.execute(select(User).where(User.id==1)
# = unfilled
# begin transaction; UPDATE user SET state=filled WHERE id=1; commit;
session.commit()
session.execute(select(User).where(User.id==1)
# =unfilled, but we expect filled
Подробнее здесь: https://stackoverflow.com/questions/798 ... the-commit
Мобильная версия