From 7dd6a588c12522dec239e59ac4dc9078b4554a6a Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Mon, 8 Dec 2008 20:32:29 +0000 Subject: [PATCH] Reset commit mode back to default after committing so that local and global transactions can be mixed on the same connection. --- Connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Connection.c b/Connection.c index d3cb83b..245e23f 100644 --- a/Connection.c +++ b/Connection.c @@ -1206,6 +1206,7 @@ static PyObject *Connection_Commit( if (Environment_CheckForError(self->environment, status, "Connection_Commit()") < 0) return NULL; + self->commitMode = OCI_DEFAULT; Py_INCREF(Py_None); return Py_None;