]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/steps/table_compare.py
make sure old data gets deleted on place type change
[nominatim.git] / test / bdd / steps / table_compare.py
index 51d1b645db053d4ce008a8a33124831af18d581e..2e71d943a83cc38587e212c8960cbb8df652f877 100644 (file)
@@ -196,7 +196,7 @@ class DBRow:
             if actual == 0:
                 return "place ID 0"
 
-            with self.context.db.cursor():
+            with self.context.db.cursor() as cur:
                 cur.execute("""SELECT osm_type, osm_id, class
                                FROM placex WHERE place_id = %s""",
                             (actual, ))