From 762e5c2c6a08a3e45bc90cf420683470341f0a51 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Fri, 30 Aug 2024 23:01:57 +0100 Subject: [PATCH] Try using executemany with parameters --- src/pypi_data/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypi_data/cli.py b/src/pypi_data/cli.py index 14a65e61..fe70995f 100644 --- a/src/pypi_data/cli.py +++ b/src/pypi_data/cli.py @@ -193,7 +193,7 @@ def run_sql( conn.execute(f"SET preserve_insertion_order=false;") if not no_limits: limits = f"PRAGMA threads={threads}; PRAGMA memory_limit='{memory}GB';" - conn.executemany(limits) + conn.executemany(limits, parameters=[[], []]) print(sql) print("\n\n\n")