X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/41bf162306cb0d4fbf76e793e37b395dd57d5761..317cc5c5443ef0a46b70be589fba2737d0685948:/nominatim/api/search/db_searches.py diff --git a/nominatim/api/search/db_searches.py b/nominatim/api/search/db_searches.py index 107451b6..db35f726 100644 --- a/nominatim/api/search/db_searches.py +++ b/nominatim/api/search/db_searches.py @@ -639,8 +639,8 @@ class PlaceSearch(AbstractSearch): numerals, details) ), else_=None) else: - interpol_sql = sa.literal(None) - tiger_sql = sa.literal(None) + interpol_sql = sa.literal_column('NULL') + tiger_sql = sa.literal_column('NULL') unsort = sa.select(inner, place_sql.scalar_subquery().label('placex_hnr'), interpol_sql.label('interpol_hnr'),