From 8e453ce176e5e125b011e009e159ac36c66411c0 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sat, 8 Oct 2005 03:15:17 +0000 Subject: [PATCH] Last changes to .set_isolation_level(). --- ChangeLog | 4 +++- psycopg/connection_type.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9d1681b..c8e154ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -2005-10-08 Federico Di Gregorio +2005-10-08 Federico Di Gregorio + + * 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. diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index bff66f67..8b185e60 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -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;