]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fix partially written comment
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 23 Sep 2021 01:59:19 +0000 (03:59 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 23 Sep 2021 01:59:19 +0000 (03:59 +0200)
The issue was addressed before the comment could be written in all its ugliness.

psycopg/psycopg/cursor.py

index ed54be95ad7655d94202b7ad06be1ab34876953c..93cfe6ca2ab013e297eba928166533018fdf1299 100644 (file)
@@ -246,9 +246,8 @@ class BaseCursor(Generic[ConnectionType, Row]):
         # run the query
         results = yield from execute(self._conn.pgconn)
 
-        # Update the prepare state of the query
-        # If an operation requires to flush our prepared statements cache,
-        # do it. Note that there is an off-by-one error because
+        # Update the prepare state of the query.
+        # If an operation requires to flush our prepared statements cache, do it.
         cmd = self._conn._prepared.maintain(pgq, results, prep, name)
         if cmd:
             yield from self._conn._exec_command(cmd)