]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/data/country_info.py
Revert "work round typing bug in pyosmium 4.0"
[nominatim.git] / src / nominatim_db / data / country_info.py
index e2bf5133f6403dd1acaf0a5e7069b2d3bac8ee7c..9b71405993f35f855e57465564a2b1eebd29ee9e 100644 (file)
@@ -138,9 +138,10 @@ def setup_country_tables(dsn: str, sql_dir: Path, ignore_partitions: bool = Fals
                         country_default_language_code text,
                         partition integer
                     ); """)
-            cur.execute_values(
+            cur.executemany(
                 """ INSERT INTO public.country_name
-                    (country_code, name, country_default_language_code, partition) VALUES %s
+                    (country_code, name, country_default_language_code, partition)
+                    VALUES (%s, %s, %s, %s)
                 """, params)
         conn.commit()