MCPcopy
hub / github.com/psycopg/psycopg / test_tpc_commit_without_prepare

Method test_tpc_commit_without_prepare

tests/dbapi20_tpc.py:59–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 con.close()
58
59 def test_tpc_commit_without_prepare(self):
60 con = self.connect()
61 try:
62 xid = self.make_xid(con)
63 con.tpc_begin(xid)
64 cursor = con.cursor()
65 cursor.execute("SELECT 1")
66 con.tpc_commit()
67 finally:
68 con.close()
69
70 def test_tpc_rollback_without_prepare(self):
71 con = self.connect()

Callers

nothing calls this directly

Calls 7

connectMethod · 0.95
make_xidMethod · 0.95
tpc_beginMethod · 0.45
cursorMethod · 0.45
executeMethod · 0.45
tpc_commitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected