]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: fix cursor -> connection in the context of transaction management
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Apr 2023 21:23:14 +0000 (23:23 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Apr 2023 21:25:13 +0000 (23:25 +0200)
Close #548

docs/basic/transactions.rst

index b9760461711bcec16cfb62f28e5df641f64d16eb..91c304aecb77878baae41b4972d3693a5869fdad 100644 (file)
@@ -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.