summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--psycopg/connection_type.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a9d1681..c8e154e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c
index bff66f6..8b185e6 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;