SF bug 1017405:  the keys() values() and items() DB methods were
ignoring their transaction (txn) argument.
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 6a726a5..d749cfc 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -2570,7 +2570,7 @@
 
     /* get a cursor */
     MYDB_BEGIN_ALLOW_THREADS;
-    err = self->db->cursor(self->db, NULL, &cursor, 0);
+    err = self->db->cursor(self->db, txn, &cursor, 0);
     MYDB_END_ALLOW_THREADS;
     RETURN_IF_ERR();