Commit a625a7ae authored by Jeremy Hylton's avatar Jeremy Hylton

use transaction manager explicitly

parent 073da837
...@@ -190,7 +190,7 @@ First get the database back in an initial state. ...@@ -190,7 +190,7 @@ First get the database back in an initial state.
>>> r2["a"].value >>> r2["a"].value
0 0
>>> r2["b"].value = 1 >>> r2["b"].value = 1
>>> cn2.getTransaction().commit() >>> tm2.get().commit()
>>> r1["b"].value >>> r1["b"].value
0 0
...@@ -208,7 +208,7 @@ should all have the same effect on non-current objects in cache. ...@@ -208,7 +208,7 @@ should all have the same effect on non-current objects in cache.
... tm1.get().commit() ... tm1.get().commit()
... cn2.sync() ... cn2.sync()
... r2["b"].value = 1 ... r2["b"].value = 1
... cn2.getTransaction().commit() ... tm2.get().commit()
>>> testit() >>> testit()
>>> r1["b"]._p_state # 0 means UPTODATE, although note it's an older revision >>> r1["b"]._p_state # 0 means UPTODATE, although note it's an older revision
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment