summaryrefslogtreecommitdiff
path: root/psycopg/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'psycopg/lobject.h')
-rw-r--r--psycopg/lobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/lobject.h b/psycopg/lobject.h
index 84fd3b5..f52d85c 100644
--- a/psycopg/lobject.h
+++ b/psycopg/lobject.h
@@ -76,7 +76,7 @@ HIDDEN int lobject_close(lobjectObject *self);
return NULL; }
#define EXC_IF_LOBJ_LEVEL0(self) \
-if (self->conn->isolation_level == 0) { \
+if (self->conn->autocommit) { \
psyco_set_error(ProgrammingError, NULL, \
"can't use a lobject outside of transactions", NULL, NULL); \
return NULL; \