summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psycopg/pqpath.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c
index 1b6b0fa..adbaa74 100644
--- a/psycopg/pqpath.c
+++ b/psycopg/pqpath.c
@@ -513,11 +513,6 @@ pq_abort(connectionObject *conn)
Dprintf("pq_abort: pgconn = %p, autocommit = %d, status = %d",
conn->pgconn, conn->autocommit, conn->status);
- if (conn->autocommit || conn->status != CONN_STATUS_BEGIN) {
- Dprintf("pq_abort: no transaction to abort");
- return 0;
- }
-
Py_BEGIN_ALLOW_THREADS;
pthread_mutex_lock(&conn->lock);