]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Added note to remember to review preparation in executemany
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 02:44:56 +0000 (03:44 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Dec 2020 02:44:56 +0000 (03:44 +0100)
psycopg3/psycopg3/cursor.py

index 86a3680615c7d717c06d7dde1c6db0cc17fefa73..c5018e617d6e283dd426258d12f5d64d2d3f9e6c 100644 (file)
@@ -288,6 +288,7 @@ class BaseCursor(Generic[ConnectionType]):
         for params in params_seq:
             if first:
                 pgq = self._convert_query(query, params)
+                # TODO: prepare more statements if the types tuples change
                 self._send_prepare(b"", pgq)
                 (result,) = yield from execute(self._conn.pgconn)
                 if result.status == ExecStatus.FATAL_ERROR: