]> git.openstreetmap.org Git - nominatim.git/blobdiff - tests/steps/db_setup.py
tests for update of search_name table
[nominatim.git] / tests / steps / db_setup.py
index 14f17756b2a54d98648995fb3f7875a35ff69a46..e1315ed95a74f65dbe9c2ab7cd994d4d3d9b24be 100644 (file)
@@ -95,6 +95,9 @@ def _format_placex_cols(cols, geomtype, force_name):
         else:
             coords = "'%s'::geometry" % coords.wkt
         cols['geometry'] = coords
         else:
             coords = "'%s'::geometry" % coords.wkt
         cols['geometry'] = coords
+    for k in cols:
+        if not cols[k]:
+            cols[k] = None
 
 
 def _insert_place_table_nodes(places, force_name):
 
 
 def _insert_place_table_nodes(places, force_name):