]> git.openstreetmap.org Git - nominatim.git/commit
avoid closure variables in lambda statements
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jan 2024 16:49:28 +0000 (17:49 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 5 Jan 2024 16:49:28 +0000 (17:49 +0100)
commit8e90fa3395126fb45bcd0ff9070c1769ac4e1c01
tree933329d81a99d7bb5d9ed529ab155707b040a66e
parent02af0a2c87e2aaac5d51a06d59cfa0f51f45fc2d
avoid closure variables in lambda statements

There is a bug in SQLAlchemy that assigns the wrong value to bind
parameters from closure variables when reusing lambda statements
that are later extended with other non-lambda expressions.

Thus either avoid lambda statements with closure variables or extending
them with non-lambda expressions.
nominatim/api/reverse.py
test/python/api/test_api_reverse.py