psycopg.git / summary / log / commit / refs
commit 92cd0fee51fa6d52fda29ee23f82017c35f92c86
Author: Denis Laxalde <denis.laxalde@dalibo.com>
Commit: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Wed May 25 08:53:28 2022 +0000
doc: fix a typo in pipeline examples
docs/advanced/pipeline.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/advanced/pipeline.rst b/docs/advanced/pipeline.rst
index 21f27b5b..45cf5070 100644
--- a/docs/advanced/pipeline.rst
+++ b/docs/advanced/pipeline.rst
@@ -176,8 +176,8 @@ several operations, using `Connection.execute()`, `Cursor.execute()` and
.. code:: python
>>> with conn.pipeline():
- ... cnn.execute("INSERT INTO mytable VALUES (%s)", ["hello"])
- ... with cnn.cursor() as cur:
+ ... conn.execute("INSERT INTO mytable VALUES (%s)", ["hello"])
+ ... with conn.cursor() as cur:
... cur.execute("INSERT INTO othertable VALUES (%s)", ["world"])
... cur.executemany(
... "INSERT INTO elsewhere VALUES (%s)",
[parent: 1545336680ad]