mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Last changes to .set_isolation_level().
This commit is contained in:
parent
6e69ac665f
commit
8e453ce176
|
@ -1,4 +1,6 @@
|
|||
2005-10-08 Federico Di Gregorio <fog@initd.org>
|
||||
2005-10-08 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* psycopg/connection_type.c: isolation level upper bound set to 2.
|
||||
|
||||
* lib/psycopg1.py: explicitly set isolation level to 2 on .connect()
|
||||
to mimic psycopg 1 behaviour.
|
||||
|
|
|
@ -149,7 +149,7 @@ psyco_conn_set_isolation_level(connectionObject *self, PyObject *args)
|
|||
|
||||
if (!PyArg_ParseTuple(args, "i", &level)) return NULL;
|
||||
|
||||
if (level < 0 || level > 3) {
|
||||
if (level < 0 || level > 2) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"isolation level out of bounds (0,3)");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user