mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +03:00
Don't clobber exception if conn_switch_isolation_level fails.
Which shouldn't.
This commit is contained in:
parent
9849083628
commit
c3c54aab38
|
@ -1,3 +1,8 @@
|
|||
2010-11-17 Daniele Varrazzo <daniele.varrazzo@gmail.com>
|
||||
|
||||
* psycopg/connection_type.c: don't clobber exception if
|
||||
isolation_level_switch fails.
|
||||
|
||||
2010-11-16 Daniele Varrazzo <daniele.varrazzo@gmail.com>
|
||||
|
||||
* psycopg/connection_int.c: abort connection to protocol 2 server.
|
||||
|
|
|
@ -415,12 +415,9 @@ psyco_conn_set_isolation_level(connectionObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
if (conn_switch_isolation_level(self, level) < 0) {
|
||||
PyErr_SetString(OperationalError,
|
||||
PQerrorMessage(self->pgconn));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user