From 92cd0fee51fa6d52fda29ee23f82017c35f92c86 Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Wed, 25 May 2022 10:53:28 +0200 Subject: [PATCH] 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 21f27b5b6..45cf50706 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)", -- 2.47.2