summaryrefslogtreecommitdiff
path: root/psycopg/lobject_int.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-03 00:10:24 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-03 00:10:24 +0100
commitc2d1f1f2e6832384ca01466cfbefecfa877e6850 (patch)
treeaac0f9894b5017bce220f19a81866a8c6234da8e /psycopg/lobject_int.c
parent389f2cf1d01a20dda78f09830e13fd3769ad5bb6 (diff)
downloadpsycopg2-c2d1f1f2e6832384ca01466cfbefecfa877e6850.tar.gz
Dropped isolation level from the connection object
Don't issue a SET TRANSACTION ISOLATION LEVEL at every begin: use PG's GUC default, eventually set by set_transaction. Dropped the last query at connection, yay! Method set_isolation_level() and property isolation_level refactored using the new structures, keeping the previous semantic.
Diffstat (limited to 'psycopg/lobject_int.c')
-rw-r--r--psycopg/lobject_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/lobject_int.c b/psycopg/lobject_int.c
index 3fe1f86..e6ad1b6 100644
--- a/psycopg/lobject_int.c
+++ b/psycopg/lobject_int.c
@@ -252,7 +252,7 @@ lobject_close_locked(lobjectObject *self, char **error)
break;
}
- if (self->conn->isolation_level == ISOLATION_LEVEL_AUTOCOMMIT ||
+ if (self->conn->autocommit ||
self->conn->mark != self->mark ||
self->fd == -1)
return 0;