From: Daniele Varrazzo Date: Thu, 23 Sep 2021 01:59:19 +0000 (+0200) Subject: Fix partially written comment X-Git-Tag: 3.0~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8be1ceb68e4a1794acc44e94444dda685c62544;p=thirdparty%2Fpsycopg.git Fix partially written comment The issue was addressed before the comment could be written in all its ugliness. --- diff --git a/psycopg/psycopg/cursor.py b/psycopg/psycopg/cursor.py index ed54be95a..93cfe6ca2 100644 --- a/psycopg/psycopg/cursor.py +++ b/psycopg/psycopg/cursor.py @@ -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)