I am trying to do a two-phase commit using SQLalchemy 0.6.8 with Postgresql 8.3.4, but I think I'm missing something ... The workflow looks like this:
session = sessionmaker(engine)(autocommit=True) tx = session.connection().begin_twophase(xid)
then from another session
session = sessionmaker(engine)(autocommit=True) session.connection().commit_prepared(xid, recover=True)
This does not cause any errors, but does not write anything to the table ... O_o What am I missing?
I even tried to lock the application after prepare() and release COMMIT PREPARED 'xid' from pgadmin, but nothing is written anyway.
Joril source share