]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove alias where it does not work with lambdas
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Aug 2023 19:52:51 +0000 (21:52 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Aug 2023 19:55:34 +0000 (21:55 +0200)
Fixes #3177.

nominatim/api/search/db_searches.py

index 4d89396288c90f67acdd3c6364ec414b4c59b9fa..e9df3beeb8f12e0951e8196b5f19e31341a4b984 100644 (file)
@@ -271,7 +271,7 @@ class NearSearch(AbstractSearch):
         """
         table = await conn.get_class_table(*category)
 
-        t = conn.t.placex.alias('p')
+        t = conn.t.placex
         tgeom = conn.t.placex.alias('pgeom')
 
         sql = _select_placex(t).where(tgeom.c.place_id.in_(ids))\