From: Denis Laxalde Date: Wed, 25 May 2022 08:53:28 +0000 (+0200) Subject: doc: fix a typo in pipeline examples X-Git-Tag: 3.1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92cd0fee51fa6d52fda29ee23f82017c35f92c86;p=thirdparty%2Fpsycopg.git doc: fix a typo in pipeline examples --- 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)",