From: Daniele Varrazzo Date: Fri, 25 Dec 2020 02:44:56 +0000 (+0100) Subject: Added note to remember to review preparation in executemany X-Git-Tag: 3.0.dev0~253^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4604e746659aa2725de39bb10e47b71b6a8d6d1d;p=thirdparty%2Fpsycopg.git Added note to remember to review preparation in executemany --- diff --git a/psycopg3/psycopg3/cursor.py b/psycopg3/psycopg3/cursor.py index 86a368061..c5018e617 100644 --- a/psycopg3/psycopg3/cursor.py +++ b/psycopg3/psycopg3/cursor.py @@ -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: