Reset commit mode back to default after committing so that local and global

transactions can be mixed on the same connection.
This commit is contained in:
Anthony Tuininga 2008-12-08 20:32:29 +00:00
parent bd5915a435
commit 7dd6a588c1

View File

@ -1206,6 +1206,7 @@ static PyObject *Connection_Commit(
if (Environment_CheckForError(self->environment, status, if (Environment_CheckForError(self->environment, status,
"Connection_Commit()") < 0) "Connection_Commit()") < 0)
return NULL; return NULL;
self->commitMode = OCI_DEFAULT;
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;