From 9d2ab05ba0ef239a042323ebd468d2b8d3df4c19 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 13 Apr 2023 23:23:14 +0200 Subject: [PATCH] docs: fix cursor -> connection in the context of transaction management Close #548 --- docs/basic/transactions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basic/transactions.rst b/docs/basic/transactions.rst index b97604617..91c304aec 100644 --- a/docs/basic/transactions.rst +++ b/docs/basic/transactions.rst @@ -19,8 +19,8 @@ connection will start a new transaction. If a database operation fails, the server will refuse further commands, until a `~rollback()` is called. -If the cursor is closed with a transaction open, no COMMIT command is sent to -the server, which will then discard the connection. Certain middleware (such +If the connection is closed with a transaction open, no COMMIT command is sent +to the server, which will then discard the connection. Certain middleware (such as PgBouncer) will also discard a connection left in transaction state, so, if possible you will want to commit or rollback a connection before finishing working with it. -- 2.47.3